Re: NSCoding protocol
Re: NSCoding protocol
- Subject: Re: NSCoding protocol
- From: email@hidden
- Date: Fri, 03 Oct 2008 16:29:12 -0700
Thanks for your replies.
But now I'm confused about how to de-allocate MyClass. Given this in
its initialisation:
S1 = @"a string";
S2 = [[NSString alloc] init];
S3 = [NSString string];
I would only release S2 in the dealloc method. But if the class has
been unarchived, won't I leak memory with S1 and S3 when the class is
released?
dkj
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden