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