• 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: 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.

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

  • Prev by Date: UID <-> Login name <-> Full name
  • Next by Date: NSWindow setMiniwindowImage seems to do nothing
  • Previous by thread: Re: Accessor methods and (auto)release: conclusion
  • Next by thread: Re: Accessor methods and (auto)release: conclusion
  • Index(es):
    • Date
    • Thread