FROM : Jens Alfke
DATE : Sat May 03 17:46:57 2008
On 3 May '08, at 6:44 AM, <email_removed> wrote:
> I'm having this problem where I cannot hide menu items in my dock
> menu. [menuItem setHidden:YES] does nothing, nor does checking the
> "Hidden" checkbox in IB. The dock menu itself is created in IB and
> connected to NSApp's dockMenu outlet. Is this a bug or am I missing
> something?
"Bug", I guess; really, the dock menu doesn't support all the
functionality of a real NSMenu, since it's implemented differently —
the NSMenu object is just a proxy, and the actual menu is managed by
the Dock process. (I believe the app sends IPC messages to the Dock
process telling it what menu items to show, and the Dock sends back
IPC messages when the user chooses an item.)
—Jens
DATE : Sat May 03 17:46:57 2008
On 3 May '08, at 6:44 AM, <email_removed> wrote:
> I'm having this problem where I cannot hide menu items in my dock
> menu. [menuItem setHidden:YES] does nothing, nor does checking the
> "Hidden" checkbox in IB. The dock menu itself is created in IB and
> connected to NSApp's dockMenu outlet. Is this a bug or am I missing
> something?
"Bug", I guess; really, the dock menu doesn't support all the
functionality of a real NSMenu, since it's implemented differently —
the NSMenu object is just a proxy, and the actual menu is managed by
the Dock process. (I believe the app sends IPC messages to the Dock
process telling it what menu items to show, and the Dock sends back
IPC messages when the user chooses an item.)
—Jens
| Related mails | Author | Date |
|---|---|---|
| slasktrattenator | May 3, 15:44 | |
| Jens Alfke | May 3, 17:46 | |
| slasktrattenator | May 3, 18:22 |






Cocoa mail archive

