Re: Accessor methods and (auto)release: conclusion
Re: Accessor methods and (auto)release: conclusion
- Subject: Re: Accessor methods and (auto)release: conclusion
- From: Marcel Weiher <email@hidden>
- Date: Tue, 6 Aug 2002 22:34:52 +0200
On Tuesday, August 6, 2002, at 09:53 Uhr, Georg Tuparev wrote:
This is very interesting -- byt academic -- discussion. I am sure many
of the not so experienced subscribers to this list are now afraid of
touching accessor methods.
Yes. Accessors are a very *simple* in concept.
Here my humble 12 years NeXTstep/Cocoa experience. In over 95% of the
cases the simplest possible solution discussed in Hillegass' book (pp.
59, "Retain, Then release") works perfectly.
That is my experience as well.
In the very few cases where this does not work, you get to know it
very quickly (SIGBUS is just one expression of this knowledge). But
instead of falling in the trap of academic discussions and religious
debates, better spend your time on writing unit test.
KISSes ;-),
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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.