• 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: NSTimer help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer help


  • Subject: Re: NSTimer help
  • From: Randall Meadows <email@hidden>
  • Date: Wed, 17 Dec 2008 10:30:16 -0700

On Dec 17, 2008, at 10:23 AM, Eric Lee wrote:

I have an application, and when I exit the window, the timer doesn't stop, so the application freezes.

Is there something similar to -(void)awakeFromNib but for stopping a timer when a window closes?

You can register any object to listen for NSWindowWillCloseNotification, and invalidate the timer in the callback.
_______________________________________________


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


References: 
 >NSTimer help (From: Eric Lee <email@hidden>)

  • Prev by Date: Re: Sublclassing NSThread
  • Next by Date: Background color of disclosure triangle row
  • Previous by thread: NSTimer help
  • Next by thread: Re: NSTimer help
  • Index(es):
    • Date
    • Thread