• 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
Other app's Dock Icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Other app's Dock Icon


  • Subject: Other app's Dock Icon
  • From: Justin Lundy <email@hidden>
  • Date: Tue, 19 Aug 2003 12:17:01 -0700

How do I get an active application's dock icon? I've tried:

NSImage *appIcon = [[[NSWorkspace sharedWorkspace] iconForFile:[[NSWorkspace sharedWorkspace] fullPathForApplication:@"SomeApp.app"]] copy];

But this just returns the application's regular icon, which does not show any special Dock badges or the such. The other option,which I believe is not possible in Cocoa, would be to call the other application using NSApplication's applicationIconImage, but I have no idea how to point to an other application.

Any thoughts would be greatly appreciated,

Justin

----
"Never give up, Never surrender."
- Capt. Peter Quincy Taggart
----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Cocoa Speech Wrapper?
  • Next by Date: Table column resize cursor in drawer
  • Previous by thread: NSOutlineView in a Drawer reloaded from Sheet NSButton
  • Next by thread: Table column resize cursor in drawer
  • Index(es):
    • Date
    • Thread