Re: Newbie Q : Not-so-simple encoding&decoding example
Re: Newbie Q : Not-so-simple encoding&decoding example
- Subject: Re: Newbie Q : Not-so-simple encoding&decoding example
- From: Chris Suter <email@hidden>
- Date: Sat, 27 May 2006 10:00:07 +1000
In Class1.m
-- (id)initWithCoder:(NSCoder *)coder
{
if (self = [super init]) {
[array1 release];
[array2 release];
These are pointless releases. You just called -[super init]. All of
your instance variables are guaranteed to be nil. There is no point
in sending release messages to object pointer you know are nil.
Out of interest what guarantees they're nil? I thought it was alloc
that guarantees your data is zeroed, not a call to init.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden