Do properties need to be deallocated?

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-05-11T17:42:29Z Indexed on 2010/05/11 17:44 UTC
Read the original article Hit count: 160

Filed under:
|
|
|
|

I subclassed NSObject:

#import <Foundation/Foundation.h>


@interface STObject : NSObject {
    NSString *message_type;
    NSString *twitter_in_reply_to_screen_name;
}

@property(nonatomic, copy) NSString *message_type;
@property(nonatomic, copy) NSString *twitter_in_reply_to_screen_name;

@end

My implementation looks like:

#import "STObject.h"

@implementation STObject
@synthesize message_type, twitter_in_reply_to_screen_name;

@end

Do I need to create a dealloc method for my two properties where I release the strings?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa