• 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: Can't release a NSWindowController when a window close
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't release a NSWindowController when a window close


  • Subject: Re: Can't release a NSWindowController when a window close
  • From: Luca Caviglione <email@hidden>
  • Date: Wed, 24 Jan 2007 10:19:31 +0100

Dear Joar,

Il giorno 21/gen/07, alle ore 20:51, j o a r ha scritto:

If your window controller is the target of a timer action it's no wonder that it's not deallocated - as the timer retains its target. Make sure to remove / invalidate all timers in your "- windowWillClose:" and see what happens. I wouldn't be surprised if it would solve your problem.

Yes, this suggestion helped (I have now some minor glitches with the autorelease but it is another story :-)). So, for further reference, this hint clarifies (to myself) the discussion in http:// www.cocoabuilder.com/archive/message/cocoa/2004/9/1/116402 . It was already suggested to invalidate the timer, but now it appears more clear (to me) when and why.


Thank you very much Joar,

Best,
Luca


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Can't release a NSWindowController when a window close (From: Luca Caviglione <email@hidden>)
 >Re: Can't release a NSWindowController when a window close (From: j o a r <email@hidden>)

  • Prev by Date: ADC : Mac OS X State of the Union: WOW
  • Next by Date: Re: Setting the application Icon
  • Previous by thread: Re: Can't release a NSWindowController when a window close
  • Next by thread: Re: bug? NSPersistentDocument Core Data Tutorial
  • Index(es):
    • Date
    • Thread