Sure I totally understand that. My question is more of "what is the most elegant way to do it". Add them to an array?
----- Original Message ----- From: iain <i...@sleepfive.com> To: Chris Paveglio <chris_paveg...@yahoo.com> Cc: Cocoa Dev List <Cocoa-dev@lists.apple.com> Sent: Saturday, March 16, 2013 2:35 PM Subject: Re: ARC Release too soon On 16 Mar 2013, at 06:16 PM, Chris Paveglio <chris_paveg...@yahoo.com> wrote: > So, am I doing some fundamental window management wrong (not sure since old > app worked OK and didn't seem to leak), or how do I do something so ARC > doesn't dealloc window controllers at the end of the function that fires them > off If you want the window controllers to hang around after the function finished you need to assign them to a strong variable otherwise they will be released. Iain _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com