Re: How far with accessors?
Re: How far with accessors?
- Subject: Re: How far with accessors?
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 27 May 2004 11:33:04 +0100
On 27 May 2004, at 00:36, Jeff Biggus wrote:
[self setTheString:nil] will release the object and nil out the
instance variable in one swell foop. That's why it's a nice way to do
it.
<snip>
It also seems to requires assumptions made about the setter's internal
code,
which the act of releasing an object should be oblivious to.
Also, you could have a subclasser who overrides setTheString: to do
other things that would break using that. I think that's a big argument
against using accessors from -dealloc.
-- Finlay
_______________________________________________
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.