Question 101
Let's say I make a car database and each car object is defined as:
Why is it @property(nonatomic, retain) NSString *name; , not @property(nonatomic, assign) NSString *name; ?
I understand that assign will not increment the reference count, as retain will be executed. But why use retain , since name is a member of the todo object, its scope is for itself.
No other external function will change it.
ios objective-c iphone nsstring
qstar Sep 04 '09 at 16:40 2009-09-04 16:40
source share