Re: NSString coding errors
Re: NSString coding errors
- Subject: Re: NSString coding errors
- From: "Adam R. Maxwell" <email@hidden>
- Date: Mon, 15 Jan 2007 19:05:01 -0800
On Jan 15, 2007, at 14:53, Adam Radestock wrote:
Hi everyone,
I've just added an NSString object to one of my custom objects,
which conforms to the NSCoding Protocol, but am getting errors
whenever I try and encode the NSString object.
Below are my .h and .m files for the custom class, can anyone point
out the error in my code? I can't see the wood for the trees...
You're using autoreleased objects as (some) ivars, and they're invalid
when you're trying to encode them, which will probably cause an
exception or crash. I'd suggest reading up on Cocoa memory management
rules again, and figure out why your -init and setPatchTypeString:
methods (at least) are incorrect.
regards,
Adam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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