Re: Problem when archiving data: [_NSViewGState encodeWithCoder:] unrecognized selector
Re: Problem when archiving data: [_NSViewGState encodeWithCoder:] unrecognized selector
- Subject: Re: Problem when archiving data: [_NSViewGState encodeWithCoder:] unrecognized selector
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 25 Jul 2008 21:59:32 -0400
On Fri, Jul 25, 2008 at 6:29 PM, JArod Wen <email@hidden> wrote:
> Since I didn't find any object in the data to be written has the type of
> NSViewGState, I am really confused about this error. Anyone can give me any
> suggestions?
This is usually a case of failing to retain an object you own. If it
gets deallocated underneath your feet, an object of a different class
may wind up in the same place in memory, but your old pointers don't
know that. Often, because of the way the compiler has generated your
code, it's consistently an object of a certain but completely
unrelated class.
--Kyle Sluder
_______________________________________________
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