Hi,
Given something like
If I access prop within ExampleClass am I accessing it as a property (using the property getters and setters) or am I accessing the variable directly? If directly, do I need to call self.prop to access using the property getters/setters/etc.?
Also, does anyone know of links to good examples on retain vs assign. I've read a few articles, but I feel example situations on when you'd use one over the other would be helpful.
Given something like
PHP:
@interface ExampleClass : NSObject {
NSObject *prop;
}
@property (nonatomic,retain) NSObject *prop;
Also, does anyone know of links to good examples on retain vs assign. I've read a few articles, but I feel example situations on when you'd use one over the other would be helpful.