Re: Simple array controller master-detail binding problem
Re: Simple array controller master-detail binding problem
- Subject: Re: Simple array controller master-detail binding problem
- From: Kyle Sluder <email@hidden>
- Date: Mon, 24 Aug 2009 10:17:06 -0700
On Mon, Aug 24, 2009 at 9:58 AM, Leon Starr<email@hidden> wrote:
> Pardon my thinking as I write.... I am guessing I need the retain because
> this thing is being autoreleased. AND it worked in the command line because
> the pool isn't drained in the middle of my session, but with a GUI it is
> drained on each event loop. Of course. Duh. Thanks guys!
More accurately: you need to retain it because you didn't get it from
an +alloc, -copy, or +new method. The fact that it's autoreleased and
therefore drained at the end of the event loop is not guaranteed by
the memory management documentation. :)
But good on ya for finding it and accurately explaining the problem
for yourself.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden