How to detect a click on app's dock icon (when the app is active)?
How to detect a click on app's dock icon (when the app is active)?
- Subject: How to detect a click on app's dock icon (when the app is active)?
- From: Stuart Malin <email@hidden>
- Date: Sun, 7 Jun 2009 14:50:14 -1000
I have a non Document based app. If the window is closed, I want to
have the user be able to get it back by clicking on the dock icon.
(Note that Apple's Mail does this). I have implemented NSApplication's
- (void) applicationDidBecomeActive:(NSNotification *)notif
but that is only invoked if the dock icon is clicked when the app is
not active. I need to know when it is clicked while the app is active.
I've looked through various docs, searched with Google, and on
Cocoabuilder, but the answer has eluded me.
_______________________________________________
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