• 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: Ken Thomases <email@hidden>
  • Date: Wed, 17 Dec 2008 13:18:46 -0600

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

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

That's very unclear. What do you mean by "exit" a window? "The timer"? Which timer? Why would you expect a timer to stop when you exit (close?) a window? Why would an application freeze just because a timer hasn't been stopped?


In other words, what the heck are you talking about?


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

As Randall said, there's a notification. There's also a delegate method, -windowWillClose:. Also, if you're dealing with a custom window subclass, you can override the -close method and take whatever actions you like after invoking super's implementation.


Regards,
Ken

_______________________________________________

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: how to separate the path name from a file name
  • Next by Date: Re: The Ages Old __MyCompanyName__ Question
  • Previous by thread: Re: NSTimer help
  • Next by thread: Re: NSTimer help
  • Index(es):
    • Date
    • Thread