Re: Setting an NSColor crashes - probably very simple issue
Re: Setting an NSColor crashes - probably very simple issue
- Subject: Re: Setting an NSColor crashes - probably very simple issue
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 4 Feb 2008 23:45:13 -0700
On Feb 4, 2008, at 11:36 PM, Steve Cronin wrote:
AwakeFromNib crashes on that line with:
2008-02-05 00:17:58.332 XYZ[3913] *** -[NSCachedWhiteColor bytes]:
selector not recognized [self = 0x338b90]
What am I not seeing here?
Your program is calling -bytes on a deallocated NSData object whose
address is now being used by an NSColor object. Try breaking on
objc_exception_throw, assuming you're using Leopard, to figure out
exactly where this is occurring. And double-check your NSData objects.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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