Re: Cocoa-dev Digest, Vol 4, Issue 1017
Re: Cocoa-dev Digest, Vol 4, Issue 1017
- Subject: Re: Cocoa-dev Digest, Vol 4, Issue 1017
- From: Ron Lue-Sang <email@hidden>
- Date: Tue, 16 Oct 2007 15:04:43 -0700
Looks like one of the observers of the defaults got dealloc'd.
Try turning on zombies and seeing what gets logged.
On Oct 16, 2007, at 3:02 AM, email@hidden wrote:
Message: 11
Date: Tue, 16 Oct 2007 03:00:44 -0700
From: Steve Checkoway <email@hidden>
Subject: Re: Binding NSPopupButton crashes
To: cocoadev Mail <email@hidden>
Cc: "I. Savant" <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
On Oct 15, 2007, at 10:21 AM, I. Savant wrote:
What does the stack trace look like?
#0 0xfffeff20 in objc_msgSend_rtp
#1 0x9249aba4 in -[NSObject(NSKeyValueObservingPrivate)
_notifyObserversForKeyPath:change:]
#2 0x92e5c5c0 in -[NSController _notifyObserversForKeyPath:change:]
#3 0x9304276c in -[NSController
observeValueForKeyPath:ofObject:change:context:]
#4 0x933f4fd8 in -[NSUserDefaultsController _setSingleValue:forKey:]
#5 0x9251b2e4 in -[NSObject(NSKeyValueCoding) setValue:forKeyPath:]
#6 0x930cbc04 in -[NSBinder
_setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error
:]
#7 0x930cb9d4 in -[NSBinder setValue:forBinding:error:]
#8 0x930cb68c in -[NSValueBinder
_applyObjectValue:forBinding:canRecoverFromErrors:handleErrors:typeOfAlert:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert
:]
#9 0x930cb2ec in -[NSValueBinder
applyDisplayedValueHandleErrors:typeOfAlert:canRecoverFromErrors:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert
:]
#10 0x930caf84 in -[NSValueBinder performAction:]
#11 0x930cae60 in -[_NSBindingAdaptor
_objectDidTriggerAction:bindingAdaptor:]
#12 0x92f2e674 in -[NSControl sendAction:to:]
#13 0x92f2e764 in -[NSApplication sendAction:to:from:]
#14 0x92fc9e40 in -[NSMenu performActionForItemAtIndex:]
#15 0x92fc9b70 in -[NSCarbonMenuImpl
performActionWithHighlightingForItemAtIndex:]
#16 0x92fab344 in AppKitMenuEventHandler
#17 0x909dd08c in DispatchEventToHandlers
#18 0x909dc224 in SendEventToEventTargetInternal
#19 0x909f8a84 in SendEventToEventTarget
#20 0x90a2eb7c in SendHICommandEvent
#21 0x90a550e8 in SendMenuItemSelectedEvent
#22 0x90a54fec in FinishMenuSelection
#23 0x90aa7338 in PopUpMenuSelectCore
#24 0x90aa6d0c in _HandlePopUpMenuSelection7
#25 0x930804c0 in _NSPopUpCarbonMenu3
#26 0x930b4860 in -[NSCarbonMenuImpl
popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions
:]
#27 0x930b3c50 in -[NSPopUpButtonCell
trackMouse:inRect:ofView:untilMouseUp:]
#28 0x92f2ce24 in -[NSControl mouseDown:]
#29 0x92f2b860 in -[NSWindow sendEvent:]
#30 0x92efeb4c in -[NSApplication sendEvent:]
#31 0x92e6c83c in -[NSApplication run]
#32 0x92e3d35c in NSApplicationMain
#33 0x00002c54 in main at main.m:13
As you can see, not a bit of it was in code that I wrote. It's very
frustrating trying to debug something like this. Are there general
tips to debugging bindings?
--
Steve Checkoway
-----------------------------
Ronzilla
Core Bindings/Cocoa Builder/Interface Data
_______________________________________________
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