I really need some clarification — I have a few questions and I'm all mixed up right now.
Here is a simple class interface:
#import <UIKit/UIKit.h>
@interface Car : NSObject{
NSInteger carID;
NSString *carName;
}
@property (nonatomic, assign) NSInteger carID;
@property (nonatomic, copy) NSString * carName;
@end
- Why is
carID
not declared as a pointer? - Why does it use "assign" for
carID
instead of "copy"? - Why even declare class members as pointers in the first place? (In my main program, my Car object will be used as a pointer.)