On 22 Dec 2009, at 13:38, Graham Cox wrote: > > On 22/12/2009, at 4:05 PM, Gerriet M. Denkmann wrote: > >> When later I reset the filterPredicates back to the simple (working) mode, I >> get another exception: >> HIToolbox: ignoring exception 'Cannot remove an observer <arrayController1> >> for the key path "theBs.bValue" from <A-entity 0x114f02a10> because it is >> not registered as an observer.' that raised inside Carbon event dispatch >> >> 1. This is a Cocoa document based app, using Core Data. Why this "Carbon >> event dispatch". And who is HIToolbox? > > > Cocoa sits atop Carbon. So all this means is that an exception didn't get > caught until it reached the Carbon layers. I don't think such exceptions were > previously logged before 10.6, though they undoubtedly did occur. > > You need to concentrate on where the exception came from and stop it from > being raised, not where it ended up getting caught.
Sigh - I had hoped that this Carbon-message would indicate the source of the problem - obviously I was wrong. The backtrace for the first exception '[<_NSFaultingMutableSet 0x10048a950> addObserver:forKeyPath:options:context:] is not supported. Key path: bValue' when setting the predicate 'aValue BEGINSWITH[n] "a" AND ANY theBs.bValue == "xx"' is: 0 CoreFoundation 0x00007fff80b73444 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x00007fff854630f3 objc_exception_throw + 45 2 CoreFoundation 0x00007fff80b73267 +[NSException raise:format:arguments:] + 103 3 CoreFoundation 0x00007fff80b731f4 +[NSException raise:format:] + 148 4 Foundation 0x00007fff8343480e -[NSSet(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 116 5 Foundation 0x00007fff8335b16d -[NSKeyValueNestedProperty object:didAddObservance:recurse:] + 229 6 Foundation 0x00007fff83359f3b -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 511 7 Foundation 0x00007fff833588e0 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 125 8 AppKit 0x00007fff8267d92c -[_NSModelObservingTracker _registerOrUnregister:observerNotificationsForKeyPath:] + 273 9 AppKit 0x00007fff82b4c269 -[_NSModelObservingTracker registerModelKeyPaths:unregisterModelKeyPaths:] + 421 10 AppKit 0x00007fff82715d35 -[NSArrayController _updateAutomaticRearrangementKeysPaths] + 240 11 AppKit 0x00007fff8271e5da -[NSArrayController _didChangeArrangementCriteriaWithOperationsMask:useBasis:] + 79 12 AppKit 0x00007fff8271e18d -[NSArrayController setFilterPredicate:] + 1344 13 ไทย Dict Both 3 0x0000000100004d8e -[MyDocument(MyDocumentPrivate) newFilters] + 1473 but there is nothing here what helps me answering why the exception was raised (although it answers where it came from). Kind regards, Gerriet. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com