Re: Uncaught Exception: NSUnknownKeyException
Re: Uncaught Exception: NSUnknownKeyException
- Subject: Re: Uncaught Exception: NSUnknownKeyException
- From: Stefan Miller <email@hidden>
- Date: Fri, 09 Mar 2012 09:30:51 -0800
On Mar 9, 2012, at 1:35 AM, Graham Cox wrote:
>
> The key is nil (null). So the problem is where the key is coming from, not the operation of the Action class.
>
You could try overriding setValue:forUndefinedKey: (see NSKeyValueCoding Protocol Reference) in your Action class and set a breakpoint there to determine the stack trace for the error. Additionally, if no other solution can be found overriding this method and leaving it empty will prevent it from throwing said error from it's default implementation, and you can handle the error in your own way.
- Stefan
_______________________________________________
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