Re: Debugging ""Cocoa Bindings: Cannot create ... from object"
Re: Debugging ""Cocoa Bindings: Cannot create ... from object"
- Subject: Re: Debugging ""Cocoa Bindings: Cannot create ... from object"
- From: Fritz Anderson <email@hidden>
- Date: Wed, 13 Jun 2012 08:05:39 -0500 (CDT)
- Importance: Normal
On Tue, June 12, 2012 9:28 pm, Keary Suska wrote:
> I saw this error in my console output and eventually figured out the
issue, but I want to be able to catch the exception. I would have never
known it was even there if I hadn't been inspecting the console for
other reasons. Is there a way to get Xcode to stop on the exception? At
least I would know it was there, and have a better chance of solving it.
Also, that gift of a beneficent Providence, TN2124, Mac OS X Debugging
Magic, shows a way to better insight into bindings issues:
> The NSBindingDebugLogLevel preference, introduced in Mac OS X 10.4,
controls AppKit's response to binding problems. To receive useful logs
about a binding problem (rather than, say, an undefined key exception),
set this preference to 1. This is useful when trying to find a
misconfigured binding in a large, bindings-rich application.
Use the Scheme editor, for the Run action (I assume you're getting this on
Run), and switch to the Arguments panel. Add an argument:
-NSBindingDebugLogLevel 1
F
--
Fritz Anderson
Xcode 4 Unleashed - x4u.manoverboard.org
Fathers' Day. Need I say more?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden