dealloc properties with assign and readwrite objective-c
Posted
by okami
on Stack Overflow
See other posts from Stack Overflow
or by okami
Published on 2010-05-20T20:41:09Z
Indexed on
2010/05/21
1:00 UTC
Read the original article
Hit count: 308
objective-c
|memory-deallocation
I have this structure:
@interface MyList : NSObject {
NSString* operation;
NSString* link;
}
@property (readwrite) NSString* operation;
@property (readwrite, assign) NSString* link;
@end
@implementation MyList
@synthesize operation,link;
@end
I know that if I had retain instead of readwrite I should release the operation and link properties.
BUT should I release the operation and link with the code above?
© Stack Overflow or respective owner