• 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: Accessor methods and (auto)release: conclusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessor methods and (auto)release: conclusion


  • Subject: Re: Accessor methods and (auto)release: conclusion
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 6 Aug 2002 19:17:21 +0200

On Tuesday, August 6, 2002, at 06:47 , Marco Scheurer wrote:

I'm pretty sure that the vast majority of Cocoa classes do not use this pattern (rightly so)

I think Ali has answered this one already (effectively saying that "very unrightly so"):

On Friday, August 2, 2002, at 06:10 , Ali Ozer wrote:

Many other classes use other techniques, mostly due to the fact their set/
get methods were written many years ago when we were still enumerating the techniques, still looking at the performance characteristics, and not as much aware of thread safety issues. We have actually fixed some cases in Jaguar to use this exact technique, and will probably continue to do so as long as we don't introduce any serious binary incompatibilities (which is unfortunately a serious threat)...

But, I believe that especially for people just approaching Cocoa and for anyone writing new classes, this get/set pattern is the most appropriate unless there are significant performance concerns like "getter will be called a lot".

---
Ondra Hada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Accessor methods and (auto)release: conclusion (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #1058 - 10 msgs
  • Next by Date: Re: Accessor methods and (auto)release: conclusion
  • Previous by thread: Re: Accessor methods and (auto)release: conclusion
  • Next by thread: Re: Accessor methods and (auto)release: conclusion
  • Index(es):
    • Date
    • Thread