• 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 20:40:55 +0200

One more point which occurred in my private debate with Marcel:

Of course, you want to be somewhat cautious with methods which look like accessors, but they do not set just object's entrails: their raison'd'etre is to maintain some kind of *object network* instead. Typical examples might be subviews or delegates or datasources.

If so, you won't generally use the accessor patterns, for the needs are different! First, you would for obvious reasons never copy; besides, sometimes (as eg. with delegates) you won't retain either, lest you create in the network retain loops. I think such cases must be considered individually.

Matter of factly, I would say they don't belong to this debate at all -- had not been for the fact that at the first look, all the methods -getter,
-superview, -delegate, -dataSource look exactly the same way, and thus somebody just might consider using those accessor patterns for them.
---
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.
  • Follow-Ups:
    • Re: Accessor methods and (auto)release: conclusion
      • From: Marcel Weiher <email@hidden>
  • Prev by Date: ThreadWorker question
  • 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