• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Binding Exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding Exception


  • Subject: Binding Exception
  • From: Richard Charles <email@hidden>
  • Date: Mon, 15 Sep 2014 14:42:05 -0600

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 (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


  • Follow-Ups:
    • Re: Binding Exception
      • From: Mike Abdullah <email@hidden>
    • Re: Binding Exception
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Want NSTableView NSOutlineView to load lazy like iOS?
  • Next by Date: Re: Binding Exception
  • Previous by thread: Re: NSOutlineView not lazy when expanding items :(
  • Next by thread: Re: Binding Exception
  • Index(es):
    • Date
    • Thread