Re: Show application when dock icon clicked
Re: Show application when dock icon clicked
- Subject: Re: Show application when dock icon clicked
- From: Byron Wright <email@hidden>
- Date: Thu, 17 Jan 2008 15:07:54 -0800
awesome! that did it. Thanks! I knew it has to be that easy, the
method name makes it sound like it's specific to a document based
application... might just be me.
On Jan 17, 2008, at 2:40 PM, j o a r wrote:
On Jan 17, 2008, at 2:07 PM, Byron Wright wrote:
That's fine if the users closes the window then deactivates it but
doesn't work if the user closes the window then clicks on the dock
icon. I cannot find an obvious delegate from NSApplication or
NSWindow that provides me with a notification when the dock icon is
clicked. Am I overlooking something?
You might want to take a look at the "-
applicationShouldHandleReopen:hasVisibleWindows:" NSApplication
delegate method.
j o a r
_______________________________________________
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