1, use release; When you use alloc and init to create an object you will need to send a release message when you are finished
2, use retain; Objects that are returned through functions are usually autoreleased so you must send a retain message to them to keep them around or for a longer time period
3, smart collections; Adding objects to collections like navigation controllers, sub-views, arrays and dictionaries automatically sends a retain message to the object.
4, auto collections release; Releasing collections automatically sends a release message to every object in the collection.
5; use dealloc; When you use properties in your class definitions with the retain keyword the system is creating code for your (in the background) that automatically retains the object. This is why you need to
release these objects in the dealloc method.
6, The dealloc method is executed when the retain count of an object reaches zero.
7, Check the nullable before reference it; One huge problem that occurs when objects attempt to access another object that has been released from memory is that this causes the app to crash.
8, Another memory problem you will encounter is memory leaking,means orphan objects never been released but still in memory.
9, Tools can help you; Learn how to use Instruments and NSZombie to diagnose and fix these memory problems.
10,Safty to use C types. When you are working with things like int, BOOL or double you do not need to worry about the retain and release pattern.
Monday, November 22, 2010
Saturday, November 20, 2010
Tips on How to Setup the Internet Connection on iMac?
One of my friends, just bought a new iMac, put power on, you will ready to play after answering some simple questions. But he get problem with getting the internet connection?
iMac will automatically find out the available wireless LANs in your area, auto-asking for password if they need , show it is connecting and working. But open the Safari, saying "there is no Internet connection." Why?
My tip on this is using 'Assist me …button' and follow up all instructions, you will find out it works with connection to internet!! Here are some detail steps:
- Click on the icon of 'System Preferences'
- Click on the Icon of 'Network' from 'Internet & Wireless' section of window
- Highlight the 'AirPort', Select the Network Name of Local Wireless Network Name
- Instead of click on the 'Advance..' to setup connection info, like password…, clicking on the button of 'Assist me …'
Thursday, November 18, 2010
Google Voice for iPhone Becomes Official Native App(VOIP)
On Nov. 16, Google finally saw its native application for Apple's iPhone approved for Apple's App Store, putting an end to a 16-month rift between two companies competing fiercely in the mobile phone market.
Google Voice is a phone management application that more than 1.4 million people use to route calls to their phones, via a special phone number.
The app, which enables free calls in the United States and cheap international calls, lets users enjoy automatic voice mail transcription, the ability to listen to live messages as they are being left on voice mail, and several other tools. Users may also display their Google Voice number as caller ID when making calls.
iPhone users need an iPhone with iOS 3.1 or later and a valid Google Voice account to use the app, which is currently available only in the United States.
We hope this great application will be available to Canada soon.
Google Voice is a phone management application that more than 1.4 million people use to route calls to their phones, via a special phone number.
The app, which enables free calls in the United States and cheap international calls, lets users enjoy automatic voice mail transcription, the ability to listen to live messages as they are being left on voice mail, and several other tools. Users may also display their Google Voice number as caller ID when making calls.
iPhone users need an iPhone with iOS 3.1 or later and a valid Google Voice account to use the app, which is currently available only in the United States.
We hope this great application will be available to Canada soon.
Wednesday, November 17, 2010
How many chance Google will take over the RIM?
Google want to firmly put it steps on the Smartphone market, with it new OS, supported by most of hardware companies.
The results are good so far compared with Apple who owned #1 position in the last quarter.
What's next step? If he take over the RIM, then world will be different? Here are some reasons,
Market share, RIM has #2 market shares in the North American smart phone
Hardware technologies, RIM has great and successful hardware technologies, Google may interested in
Future and cost, smart phone has great hottest future in the next 10 years, potentially replace PC desk in all or most of them, in order to compite with Apple from software to hardware, to cut and save the cost in overal
Let's see,
Tuesday, November 9, 2010
Build Apple Application using C# via MonoTouch
Another way to build-up Apple Application using C# on MonoTouch Introduction
Before you get started building Licence:Unlike Mono, MonoTouch is not open source and is a commercial product. That means if you want to do anything useful with it you have to purchase a license. MonoTouch comes in three flavors and prices:$399, $999 and $3999.
MonoTouch applications for the iPhone we’ll need a few things:An Intel Mac Computer Running MacOSX 10.5 or 10.6 (Leopard or Snow Leopard)
Apple’s iPhone SDK 3.0 or Higher
The Current Version of Mono
MonoTouch SDK
An IDE such as MonoDevelop or XCode, or a Text Editor program Until recently your only choice for developing applications for Apple’s iPhone was to jump into the Apple development ecosystem. This means being willing to write Objective-C code in the XCode IDE. For many developers, learning Objective-C was seen as a huge barrier-to-entry. This is especially true for many .NET developers whom have never had to worry about memory management, pointers, and other C language responsibilities that they are unfamiliar with.
All this has changed with the introduction the MonoTouch framework, a part of Novell’s Mono Project. The Mono Project is an open-source implementation of Microsoft .NET Platform. It allows you to run .NET applications on nearly any platform, including Apple, FreeBSD, Linux, Unix, and others. MonoTouch, which is a new part of the Mono Project, allows you to write applications using C# with .NET platform that run on the iPhone.
Before you get started building Licence:Unlike Mono, MonoTouch is not open source and is a commercial product. That means if you want to do anything useful with it you have to purchase a license. MonoTouch comes in three flavors and prices:$399, $999 and $3999.
MonoTouch applications for the iPhone we’ll need a few things:
Apple’s iPhone SDK 3.0 or Higher
The Current Version of Mono
MonoTouch SDK
An IDE such as MonoDevelop or XCode, or a Text Editor program
All this has changed with the introduction the MonoTouch framework, a part of Novell’s Mono Project. The Mono Project is an open-source implementation of Microsoft .NET Platform. It allows you to run .NET applications on nearly any platform, including Apple, FreeBSD, Linux, Unix, and others. MonoTouch, which is a new part of the Mono Project, allows you to write applications using C# with .NET platform that run on the iPhone.
More Information
For a full list of limitations and more information, including workarounds, see http://monotouch.net/Documentation/Limitations.iPhone Droppen from 78% to 60.1% on Japan Smartphone Market
On Japan Smartphone market, according to MMRI, a total of 2.23 million smartphones (Android/Windows Mobile/Blackberry/iOS/Palm) were sold in Japan between April and September this year, and 1.34 million (or 60.1%) of those were iPhones.
On last period end by April 2010, iPhone was taken about 78% of overal market.
In general, MobileCrunch reports notes that smartphone sales more than doubled over the year-ago period, despite the fact that overall mobile phone sales in Japan grew by only 12%. With smartphones now approaching 12% of Japan's overall smartphone sales, Apple's dominant position in that rapidly-growing smartphone market has enabled it to grab 7% of the total mobile phone market there.
On last period end by April 2010, iPhone was taken about 78% of overal market.
In general, MobileCrunch reports notes that smartphone sales more than doubled over the year-ago period, despite the fact that overall mobile phone sales in Japan grew by only 12%. With smartphones now approaching 12% of Japan's overall smartphone sales, Apple's dominant position in that rapidly-growing smartphone market has enabled it to grab 7% of the total mobile phone market there.
Friday, November 5, 2010
Apple = Microsoft + HP
Company Name | Stock Maket Value (Billion) |
Apple | 291 |
Microsoft | 228 |
Google | 199 |
IBM | 181 |
Oracle | 147 |
Cisco | 134 |
Intel | 118 |
HP | 98 |
(Note: Today’s date: November 5, 2010 at 10 East Time)
Based on today’s stock market price, if Apple’s price gets another 10% gain, then means:
Apple = Microsoft + HP
Apple = Google + Intel
Apple = IBM + Oracle
Apple = Microsoft + HP
Let’s see… who will win on Next Step!!!
Maybe, Bill Gate has to back to work, terminate his retire plan like most of American Older people…!!!
Subscribe to:
Posts (Atom)