• 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: Responding to Dock Click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Responding to Dock Click


  • Subject: Re: Responding to Dock Click
  • From: Pontus Ilbring <email@hidden>
  • Date: Fri, 14 Oct 2005 21:45:35 +0200

On 10/14/05, Nick D'Amato <email@hidden> wrote:
> Hello,
>
> I'm writing a Cocoa single window based app. When the window is
> closed, I'd like my app to continue running, which happens by default
> in Cocoa. However, when someone clicks my app's icon in the dock
> while the window is closed, I would like to automatically reopen my
> main window (like most apps do).
>
> I'm sure there is a default cocoa method to do this, but I cannot
> find it. Any suggestions would be greatly appreciated!
> Nick D'Amato

Try applicationShouldHandleReopen:hasVisibleWindows:
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Responding to Dock Click (From: "Nick D'Amato" <email@hidden>)

  • Prev by Date: Re: Responding to Dock Click
  • Next by Date: Re: Responding to Dock Click
  • Previous by thread: Re: Responding to Dock Click
  • Next by thread: Re: Responding to Dock Click
  • Index(es):
    • Date
    • Thread