• 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: The joys of people using valueForKey to get objects out of a dictionary.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The joys of people using valueForKey to get objects out of a dictionary.


  • Subject: Re: The joys of people using valueForKey to get objects out of a dictionary.
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 10 Nov 2015 16:32:38 -0500
  • X_v_e_cd: 89b0c2fb84bf6eaa9cf41f2540646145
  • X_v_r_cd: ed09c38783cc68d33bea780748a73237

And you guys have no idea how useful this discussion was to me today.

Even though the KVO valueForKey: method doesn't crater with an NSUnknownException with ease, it turns out that this wonderful code is also using the KVO method of setValue: forKey: on a dictionary.

And guess what?

*** Terminating app due to uncaught exception 'NSUnknosnKeyException', reason, [<__NSDictionaryI.... setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key username.'
*** First throw call stack:


THANK YOU.


_______________________________________________

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: The joys of people using valueForKey to get objects out of a dictionary.
      • From: "Gary L. Wade" <email@hidden>
References: 
 >Re: The joys of people using valueForKey to get objects out of a dictionary. (From: Greg Weston <email@hidden>)
 >Re: The joys of people using valueForKey to get objects out of a dictionary. (From: Alex Zavatone <email@hidden>)
 >Re: The joys of people using valueForKey to get objects out of a dictionary. (From: Jens Alfke <email@hidden>)
 >Re: The joys of people using valueForKey to get objects out of a dictionary. (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: NSSegmentedControl's sizing behaviour
  • Next by Date: Re: The joys of people using valueForKey to get objects out of a dictionary.
  • Previous by thread: Re: The joys of people using valueForKey to get objects out of a dictionary.
  • Next by thread: Re: The joys of people using valueForKey to get objects out of a dictionary.
  • Index(es):
    • Date
    • Thread