Re: Accessor methods and (auto)release: conclusion
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.