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?

Thanks,
Richard Charles
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to