• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Click dock icon, make main window reappear
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Click dock icon, make main window reappear
      • From: Robert Walker <email@hidden>
References: 
 >Click dock icon, make main window reappear (From: Brian Weitzner <email@hidden>)

  • Prev by Date: Click dock icon, make main window reappear
  • Next by Date: IBPalette Frustration
  • Previous by thread: Click dock icon, make main window reappear
  • Next by thread: Re: Click dock icon, make main window reappear
  • Index(es):
    • Date
    • Thread