Re: How to launch window of the application on clicking of dock icon?
Re: How to launch window of the application on clicking of dock icon?
- Subject: Re: How to launch window of the application on clicking of dock icon?
- From: Benjamin Dobson <email@hidden>
- Date: Tue, 9 Dec 2008 17:14:41 +0000
On 9 Dec 2008, at 17:02:19, Arun wrote:
Hi,
I have created a simple application in cocoa.
when it is ran, the main window appears and a default dock icon in
the Dock.
If i close the window, the dock icon still stays. But if i click on
the dock
icon then also the main window is visible.
The only way i can see the main window is by quitting the app and
launching
it again. Is there any way in which upon clicking on the dock,
the application window becomes visible.
Thanks
Arun KA
I don't actually have an answer, but it sounds like the
applicationShouldTerminateAfterLastWindowClosed: delegate method might
be right for you. Although I am just guessing here.
http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#/
/apple_ref/occ/instm/NSObject/
applicationShouldTerminateAfterLastWindowClosed:
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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