Re: Binding Exception
Re: Binding Exception
- Subject: Re: Binding Exception
- From: Mike Abdullah <email@hidden>
- Date: Mon, 15 Sep 2014 21:52:26 +0100
On 15 Sep 2014, at 21:42, Richard Charles <email@hidden> 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@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