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: Steve Cronin <email@hidden>
- Date: Tue, 5 Feb 2008 01:27:06 -0600
Bill;
Hey THANKS for the quick response!
I turned on NSZombieEnabled
[I went to executable - Get Info - Arguments - Variables to be set
Added NSZombieEnabled set value to YES (the docs sometimes say YES
and sometimes say 1...)
I've run it using both values... same result
I also checked the checkbox that has no explanation for its use but
appears to mean Use/Don'tUse
For good measure did a CleanAll and recompiled.
No change in output.....
#0 0x9282b36d in -[NSException raise]
#1 0x92852247 in +[NSException raise:format:]
#2 0x928da4ca in -[NSObject doesNotRecognizeSelector:]
#3 0x927fe32b in -[NSObject(NSForwardInvocation) forward::]
#4 0x90a5ccc1 in _objc_msgForward
#5 0x9082a215 in CFDataGetBytePtr
#6 0x928009d5 in -[NSUnarchiver initForReadingWithData:]
#7 0x92843e6f in +[NSUnarchiver unarchiveObjectWithData:]
#8 0x93514ceb in -[NSBinder
valueForBinding:resolveMarkersToPlaceholders:]
#9 0x93514c00 in -[NSValueBinder _referenceBindingValue]
#10 0x93514838 in -[NSValueBinder
_adjustObject:mode:observedController:observedKeyPath:context:editableSt
ate:adjustState:]
#11 0x935144c2 in -[NSValueBinder
_observeValueForKeyPath:ofObject:context:]
#12 0x927e7324 in -[NSObject(NSKeyValueObserverNotification)
didChangeValueForKey:]
#13 0x0511eed4 in -[XYZController awakeFromNib] at
XYZWindowController.m:130
With same message cited earlier in console.
What have I not done correctly?
Steve
On Feb 5, 2008, at 12:45 AM, Bill Bumgarner wrote:
On Feb 4, 2008, at 10: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?
That sounds like some *other* object has been overreleased -- an
NSData -- and it just so happens that the reference to your color
happened to fall wherever that object was before.
Run with NSZombieEnabled to debug.
Or switch on GC and remove all retain/release code.
b.bum
_______________________________________________
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