A 101 question
Let's say i'm making database of cars and each car object is defined as:
#import <UIKit/UIKit.h>
@interface Car:NSObject{
NSString *name;
}
@property(nonatomic, retain) NSString *name;
Why is it @property(nonatomic, retain) NSString *name;
and not @property(nonatomic, assign) NSString *name;
I understand that Assign will not increment the reference counter as Retain will do. But why use Retain, since name is a member of the todo object the scope of it is to itself.
No other external function will modify it either.