Re: Click dock icon, make main window reappear
Re: Click dock icon, make main window reappear
- Subject: Re: Click dock icon, make main window reappear
- From: Shawn Erickson <email@hidden>
- Date: Wed, 23 May 2007 08:04:21 -0700
On May 23, 2007, at 8:00 AM, Brian Weitzner wrote:
Hi all,
I thought it would be a problem if my users closed the windows
associated with my app and couldn't get them back without quitting
and restarting the app. I want to make it so that when the dock
icon is clicked, the main window will appear if all the windows are
closed (like Mail). I tried google, but that was not helpful as
there are a lot of articles having to do with dock icons and
windows that have nothing to do with this problem. I'm sorry if
this is a stupid question, but how does one do this? Thanks!
applicationShouldHandleReopen:hasVisibleWindows:
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//
apple_ref/occ/instm/NSObject/
applicationShouldHandleReopen:hasVisibleWindows:>
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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