• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to be aware of clicking on dock icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: how to be aware of clicking on dock icon
      • From: Chase <email@hidden>
References: 
 >how to be aware of clicking on dock icon (From: Chase <email@hidden>)

  • Prev by Date: Re: how to be aware of clicking on dock icon
  • Next by Date: Re: Base Conversion?
  • Previous by thread: Re: how to be aware of clicking on dock icon
  • Next by thread: Re: how to be aware of clicking on dock icon
  • Index(es):
    • Date
    • Thread