• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ARC Release too soon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARC Release too soon


  • Subject: Re: ARC Release too soon
  • From: iain <email@hidden>
  • Date: Sat, 16 Mar 2013 18:35:24 +0000


On 16 Mar 2013, at 06:16 PM, Chris Paveglio <email@hidden> 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 (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

  • Follow-Ups:
    • Re: ARC Release too soon
      • From: Chris Paveglio <email@hidden>
References: 
 >ARC Release too soon (From: Chris Paveglio <email@hidden>)

  • Prev by Date: ARC Release too soon
  • Next by Date: guidelines for using autolayout with NSScrollView?
  • Previous by thread: ARC Release too soon
  • Next by thread: Re: ARC Release too soon
  • Index(es):
    • Date
    • Thread