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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to