• 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
Trick to implementing NSKeyValueCoding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trick to implementing NSKeyValueCoding?


  • Subject: Trick to implementing NSKeyValueCoding?
  • From: Arturo Perez <email@hidden>
  • Date: Mon, 21 Mar 2005 09:19:35 -0500

Hi all,

I had grueling debugging session to track this down so it's more in the vein of a heads-up than anything else.

I wanted to manipulate values on the setObject.../objectFor and takeValues../valuesFor.. methods. So I coded a proxy class to a NSMutableDictionary. I put in that it "implements NSKeyValueCoding" and it promptly caused me enormous grief. Essentially, methods that worked without the implements clause don't work with the implements clause. That is, if I put in "implements NSKeyValueCoding" then methods that previously worked fine as WebObjects Builder bindings stopped returning values. Very strange, not what I expected and 8 debugging hours later I tracked it down to those two keywords.

To solve the problem I put in "implements NSKeyValueCoding.ErrorHandling" instead (and implemented the required methods, of course). That achieved the effect I was looking for.

So, bottom line. Is there a trick to implementing the NSKeyValueCoding interface?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Deserialze to NSDictionary with proper type?
  • Next by Date: Re: Deserialze to NSDictionary with proper type?
  • Previous by thread: Re: Deserialze to NSDictionary with proper type?
  • Next by thread: Am I using EOUtilities.createAndInsertInstance() correctly?
  • Index(es):
    • Date
    • Thread