Which trick uses Apple to show icons in the dock contextual menu ?
Posted
by
Matthieu Riegler
on Stack Overflow
See other posts from Stack Overflow
or by Matthieu Riegler
Published on 2012-07-08T03:11:32Z
Indexed on
2012/07/08
3:15 UTC
Read the original article
Hit count: 166
My question is quite simple :
To use a custom menu for the apps icon on the dock, - (NSMenu*) applicationDockMenu: (id) sender;
of the NSApplicationDelegate
has to return the menu that the dock will display.
Using setImage
on a NSMenuItem
, you can normaly add icons to the menu. They show up on the normal menu, but not on in contextual menu of the app's dock icon.
Then how did Apple manage QuickTime, XCode, Preview to show icons in the list of recent opened files accessible in their dock contextual menu ?
Thx.
© Stack Overflow or respective owner