• 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: Apple guys: is the XCode generated CD accessor code decent?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple guys: is the XCode generated CD accessor code decent?


  • Subject: Re: Apple guys: is the XCode generated CD accessor code decent?
  • From: Scott Stevenson <email@hidden>
  • Date: Fri, 27 May 2005 12:17:43 -0700


On May 27, 2005, at 11:56 AM, Scott Ellsworth wrote:

int habitability = [testWorld valueForKey:@"atm"] + [testWorld valueForKey:@"hyd"];


This would yield some interesting results.   :)



I believe I find it easier because there is just plain less to parse with a direct setter, so it is easier to recognize as a setter/getter by eye.


I like the loose, zen-like quality of KVC.  In other words, I'd rather see more KVC messages per line than more total method implementations per project.

There are times when hard-coded accessors make more sense. In either case, I think it's good to wait to create accessors until the design solidifies. The reduced code is a key to Core Data's ability to quickly prototype ideas.


     - Scott


--

http://treehouseideas.com/

http://theocacao.com/ [blog]



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Apple guys: is the XCode generated CD accessor code decent?
      • From: Scott Ellsworth <email@hidden>
References: 
 >Apple guys: is the XCode generated CD accessor code decent? (From: Scott Ellsworth <email@hidden>)
 >Re: Apple guys: is the XCode generated CD accessor code decent? (From: Scott Stevenson <email@hidden>)
 >Re: Apple guys: is the XCode generated CD accessor code decent? (From: Scott Ellsworth <email@hidden>)

  • Prev by Date: Re: Can an mdimporter embed some frameworks as an application ?
  • Next by Date: Re: Automatic build number incrementing
  • Previous by thread: Re: Apple guys: is the XCode generated CD accessor code decent?
  • Next by thread: Re: Apple guys: is the XCode generated CD accessor code decent?
  • Index(es):
    • Date
    • Thread