Re: how to be aware of clicking on dock icon
Re: how to be aware of clicking on dock icon
- Subject: Re: how to be aware of clicking on dock icon
- From: Ian Anderson <email@hidden>
- Date: Sat, 16 Jul 2005 16:19:51 -0700
I don't believe there's a notification sent for that, but you can
implement this method on your application delegate. See http://
developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/
ObjC_classic/Classes/NSApplication.html#//apple_ref/doc/uid/
20000012-656685 for details.
- (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication
hasVisibleWindows:(BOOL)flag
Ian
if my app is **not** active and the user clicks the dock icon, i
get an NSApplicationDidBecomeActiveNotification.
... but ... what if i'm already the active app?
i'd like to know when the dock icon is clicked.
it does generate an applicationwillupdate notification an a
subsequent applicationdidupdate, but i've got a ton of stuff that
triggers that same thing. i have no way of knowing whether or not
those notifications were the result of a click on the dock icon.
how can this be done?
thanks.
- chase
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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