• 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: loop efficiency & messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loop efficiency & messages


  • Subject: Re: loop efficiency & messages
  • From: Marco Scheurer <email@hidden>
  • Date: Wed, 23 Mar 2005 19:13:43 +0100


On Mar 23, 2005, at 19:00PM, Philip Mötteli wrote:

I remember the time, when Apple (NeXT at that time) said, that getters should be prepended with "get". Some years later they changed by saying, that you only should take the name of the IVar and the "get" version is reserved for copying the actual value into a reserved memory space.

Really? When was it? I don't remember this, and I checked my NeXTSTEP 3 ref man, and sure enough there is no get.


I'm pretty sure that this a Java (maybe coming from C++) idiom (it certainly shows the lack of taste of the Java designers in my opinion). I would say that "get" is in KVC to placate Java users, and because KVC predates bindings, remember EOF. I would be ready to bet that it was introduced in KVC when WebObjects moved to Java.

marco

Marco Scheurer
Sen:te, Lausanne, Switzerland   http://www.sente.ch
_______________________________________________
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: loop efficiency & messages
      • From: Philip Mötteli <email@hidden>
References: 
 >Re: loop efficiency & messages (From: Will Mason <email@hidden>)
 >Re: loop efficiency & messages (From: Charilaos Skiadas <email@hidden>)
 >Re: loop efficiency & messages (From: Sherm Pendley <email@hidden>)
 >Re: loop efficiency & messages (From: Charilaos Skiadas <email@hidden>)
 >Re: loop efficiency & messages (From: Philip Mötteli <email@hidden>)

  • Prev by Date: NSMutableArray, NSArrayController and NSTableView
  • Next by Date: Solved: performKeyEquivalent and arrow keys
  • Previous by thread: Re: loop efficiency & messages
  • Next by thread: Re: loop efficiency & messages
  • Index(es):
    • Date
    • Thread