Objective-C Property Question
Posted: Thu Jun 17, 2010 8:39 pm
Hello all, right now I'm trying to learn Objective-C so that I can (hopefully) eventually make games for the IPhone.
Right now I'm looking at a tutorial for Objective-C, and I saw this code in it:
The tutorial says that this will retain the new value, but if you were to @synthesize the two, would it also release caption/photographer?
Right now I'm looking at a tutorial for Objective-C, and I saw this code in it:
Code: Select all
#import <Cocoa/Cocoa.h>
@interface Photo : NSObject {
NSString* caption;
NSString* photographer;
}
@property (retain) NSString* caption;
@property (retain) NSString* photographer;
@end