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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to