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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to