Re: is nullify causing an exception
Re: is nullify causing an exception
- Subject: Re: is nullify causing an exception
- From: Steve Cronin <email@hidden>
- Date: Wed, 8 Mar 2006 15:07:16 -0600
Miguel;
I'm sorry if the original email was not clear!
As for your 'in code' question, how would I get a toobarItem to call
the 'remove' in the arrayController?
No it is NOT a breakpoint! Here's the stack at the error:
#0 0xfffeff20 in objc_msgSend_rtp
#1 0x9299e95c in _NSKeyValueObservationInfoGetForwarderForObserver
#2 0x9296d540 in -[NSObject(NSKeyValueObserverRegistration)
removeObserver:forKeyPath:]
#3 0x9296d570 in -[NSObject(NSKeyValueObserverRegistration)
removeObserver:forKeyPath:]
#4 0x938e1d38 in -[_NSModelObservingTracker
_registerOrUnregister:observerNotificationsForModelObject:]
#5 0x938d97b8 in -[_NSModelObservingTracker
clearAllModelObjectObserving]
#6 0x938d9664 in -[_NSModelObservingTracker
setIndexReferenceModelObjectArray:clearAllModelObjectObserving:]
#7 0x938db95c in -[NSTableBinder _updateContent]
#8 0x938db7e0 in -[NSTableBinder
_observeValueForKeyPath:ofObject:context:]
#9 0x938db5c4 in -[NSTableBinder
observeValueForKeyPath:ofObject:change:context:]
#10 0x9296df3c in -[NSObject(NSKeyValueObservingPrivate)
_notifyObserversForKeyPath:change:]
#11 0x938df608 in -[NSController _notifyObserversForKeyPath:change:]
#12 0x938df420 in -[NSArrayController
didChangeValuesForArrangedKeys:objectKeys:indexKeys:]
#13 0x938deb24 in -[NSArrayController setContent:]
#14 0x938de344 in -[NSArrayDetailBinder
_refreshDetailContentInBackground:]
#15 0x9296df3c in -[NSObject(NSKeyValueObservingPrivate)
_notifyObserversForKeyPath:change:]
#16 0x938df608 in -[NSController _notifyObserversForKeyPath:change:]
#17 0x938e5338 in -[NSController
observeValueForKeyPath:ofObject:change:context:]
#18 0x93b626c4 in -[NSArrayController
observeValueForKeyPath:ofObject:change:context:]
#19 0x929a187c in -[NSObject(NSKeyValueObserverNotification)
didChangeValueForKey:withSetMutation:usingObjects:]
#20 0x9407c2cc in -[NSManagedObject
didChangeValueForKey:withSetMutation:usingObjects:]
Thanks for your time!
Steve
________________________________________
On Mar 8, 2006, at 1:00 PM, Miguel Sanchez wrote:
I'm sorry if I missed it in your email, but what is the error you're
getting? You say that you are dropped into GDB but is that in a
breakpoint for that method? Is an exception raised?
do you need to do the deletion in code? (collecting the selection and
removing from the context). Why not let the detail array controller
do this for you?
- Miguel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden