• 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
overriding certain NSKeyValueCoding methods in EOs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

overriding certain NSKeyValueCoding methods in EOs


  • Subject: overriding certain NSKeyValueCoding methods in EOs
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Sun, 15 Apr 2007 13:50:44 +0200

Hi all,


I have an idea, but am not sure if it would be EOF acceptable. Essentially, I would like to expand the KVC system somewhat. The point would be this:



public Object valueForKey(String key){ try{ return super.valueForKey(key); }catch(Exception ex){ Object rVal = valueForCustomKey(key); if(rVal != null) return rVal; throw ex; } }

public Object valueForCustomKey(String key){
	//	find a key in another system as EOF's KVC
	...
}


So, if there is not EOF result for a key, try the additional implementation. It would be ideal of course to get this to work with the rest of KVC, to enable sums, counts, and all that stuff on custom keys as well. What I am thinking / hoping at the moment is that KVC is implemented so that for retrieving and setting values for keys it relies on a narrow set of methods (NSKeyValueCoding interface only???)...


Any words of wisdom?

Thanks!
Florijan
_______________________________________________
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


  • Follow-Ups:
    • Re: overriding certain NSKeyValueCoding methods in EOs
      • From: Pierre Bernard <email@hidden>
  • Prev by Date: Re: Troubleshooting utf8 text SQL generation
  • Next by Date: Re: overriding certain NSKeyValueCoding methods in EOs
  • Previous by thread: Re: Type Number in WO WebServices
  • Next by thread: Re: overriding certain NSKeyValueCoding methods in EOs
  • Index(es):
    • Date
    • Thread