On 15 Sep 2014, at 21:42, Richard Charles <[email protected]> wrote:
> I have a binding that throws an Objective-C exception but the console > displays no output and the application does not crash but rather the > application runs fine. Enabling NSBindingDebugLogLevel 1 does not help, the > console still displays nothing. I am using Xcode 5.1.1 with the All > Exceptions breakpoint enabled. > > [self bind:@"allowSelection" > toObject:_customView.window.windowController > > withKeyPath:@“widgetControllerManager.activeWidgetController.allowSelection" > options:nil]; > > The stack trace looks like this. > > #0 0x00007fff909f0e4a in objc_exception_throw () > #1 0x00007fff8a3f710c in +[NSException raise:format:] () > #2 0x00007fff94b152a7 in -[NSObject(NSKeyValueCoding) setNilValueForKey:] () > #3 0x00007fff94a4472e in -[NSObject(NSKeyValueCoding) setValue:forKey:] () > #4 0x00007fff88549f0d in -[NSObjectParameterBinder > _updateObject:observedController:observedKeyPath:context:] () > #5 0x00007fff88540f08 in -[NSObject(NSKeyValueBindingCreation) > bind:toObject:withKeyPath:options:] () > > This application contains lots of programatic bindings similar to this one. > However this is the only one which throws an exception. > > Should I be concerned about this? > > Is there anyway to debug this? Read the docs for -setNilValueForKey: Does that answer your question? _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
