Re: dock menu
Re: dock menu
- Subject: Re: dock menu
- From: j o a r <email@hidden>
- Date: Sun, 3 Aug 2003 22:34:36 +0200
On Sunday, Aug 3, 2003, at 21:45 Europe/Stockholm, Tomas Zahradnicky
wrote:
How on earth do you add Items to the dock menu programatically??
SetApplicationDockTileMenu function from HIToolbox is your friend.
Look at
<file:///System/Library/Frameworks/Carbon.framework/Versions/A/
Frameworks/HIToolbox.framework/Versions/A/Headers/MacApplication.h>.
Huh? Why not simply read the documentation for NSApplication (and
NSMenu and NSMenuItem if you're not familiar with them) and the method
"applicationDockMenu:"? This is Cocoa Dev after all...
Implement that method in your application delegate, and when called,
create and return the menu on the fly. If you need to modify it later
you can retain a reference to it and modify it at will.
j o a r
_______________________________________________
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.
References: | |
| >Re: dock menu (From: Tomas Zahradnicky <email@hidden>) |