Re: How to detect a click on app's dock icon (when the app is active)?

2009-06-08 Thread Vadim
Another delegate method also works: - (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag Could you please tell me if it's OK to use it to ‘unhide’ main window. Thanks! On 08.06.2009, at 4:05, Andy Lee wrote: On Jun 7, 2009, at 8:50 PM, Stuart Ma

Re: How to detect a click on app's dock icon (when the app is active)?

2009-06-07 Thread Andy Lee
On Jun 7, 2009, at 9:17 PM, Stuart Malin wrote: Q: I presume it doesn't matter what value is returned for - applicationOpenUntitledFile (I happen to be returning NO because no file was opened). I don't know, but my guess is that if it seems to work, you can assume it works. Maybe a docume

Re: How to detect a click on app's dock icon (when the app is active)?

2009-06-07 Thread Stuart Malin
On Jun 7, 2009, at 3:05 PM, Andy Lee wrote: On Jun 7, 2009, at 8:50 PM, Stuart Malin wrote: 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 NSAppli

Re: How to detect a click on app's dock icon (when the app is active)?

2009-06-07 Thread Andy Lee
On Jun 7, 2009, at 8:50 PM, Stuart Malin wrote: 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) applicationDidBecomeAc

How to detect a click on app's dock icon (when the app is active)?

2009-06-07 Thread Stuart Malin
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 inv