Re: Should objects returned by indirection be autoreleased
Re: Should objects returned by indirection be autoreleased
- Subject: Re: Should objects returned by indirection be autoreleased
- From: Eric <email@hidden>
- Date: Sat, 13 May 2006 13:03:24 -0700
Just to add to my previous email. Maybe Lon's confusion came from not
knowing which perspective I'm speaking from.
If my perspective is outside of NSCell -- i.e. I'm using an instance of
NSCell in my class -- then I can't assume NSCell will retain represented
object for me (but will definitely retain it throughout its lifetime).
On the other hand, if my perspective is inside of NSCell -- i.e. I'm
subclassing NSCell -- then I can assume NSCell (my superclass) is going to
retain representedObject throughout its own (i.e. my) lifetime.
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden