Re: Responding to Dock Click
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