• 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
NSWindowController and GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindowController and GC


  • Subject: NSWindowController and GC
  • From: Bryan Matteson <email@hidden>
  • Date: Wed, 30 Sep 2009 18:20:16 -0500

I was just reminded of something. I use GC in my app, and unless I specifically disable collection for a window controller, it's destroyed as soon as it loses key. I solved it by setting the controller as the delegate of the window, disabling collection for the window controller in windowDidLoad, and re-enabling it in windowWillClose:. Is there another way?

-B
_______________________________________________

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: NSWindowController and GC
      • From: Chris Idou <email@hidden>
    • Re: NSWindowController and GC
      • From: Rob Keniger <email@hidden>
  • Prev by Date: Re: Some more questions on NSOpenPanel
  • Next by Date: Mixed Core Data and "static" nodes in outline view
  • Previous by thread: Re: Cocoa UI Libraries?
  • Next by thread: Re: NSWindowController and GC
  • Index(es):
    • Date
    • Thread