Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TurboLag

macrumors member
Original poster
Feb 24, 2004
85
0
After the user clicks the red close button on my application, I would like the window to re-appear when the icon in the dock is clicked. I have created the method to re-show the window in the menu bar, but I would also like an icon-click to invoke the same method.

What method is invoked when the icon is clicked?
 
Check the NSApplication class documentation for:
Code:
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag

For anything like this, the first places to look are usually NSApplication or NSDocument IMHO.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.