• 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
Re: Uncaught Exception: NSUnknownKeyException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Uncaught Exception: NSUnknownKeyException (From: Donald Hall <email@hidden>)
 >Re: Uncaught Exception: NSUnknownKeyException (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: [Q] Why is the threading and UI updating designed to be done only on a main thread?
  • Next by Date: Re: Cocoa-dev Digest, Vol 9, Issue 28
  • Previous by thread: Re: Uncaught Exception: NSUnknownKeyException
  • Next by thread: background image
  • Index(es):
    • Date
    • Thread