Hiding an NSMenu, or making keyboard shortcuts not tied to a menu item?
Hiding an NSMenu, or making keyboard shortcuts not tied to a menu item?
- Subject: Hiding an NSMenu, or making keyboard shortcuts not tied to a menu item?
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 16 Jul 2003 18:51:47 -0700
I RTFM'd and checked the archives, and didn't find anything, so...
In one application I'm trying to make an NSMenu that is hidden from the
user, so it doesn't get drawn on the screen, but it does respond to
keyboard commands like Command-whatever.
How do I do this? I can't find any way in the reference or in IB to
make an NSMenu hidden. I already tried placing a pull-down menu inside
a window and hiding it behind a custom view, but it would only show up
anyway as a half-transparent menu. I think iTunes does something like
this; can this only be done in Carbon?
If it's not possible to hide an NSMenu, is it possible to make it so
that an action is triggered by a keystroke that is _not_ (a) assigned
to a menu item, (b) assigned to a toolbar item (which I understand
doesn't work anyway), (c) detected in an NSView's
-performKeyEquivalent: method, or (d) dependent on private APIs?
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://seiryu.home.comcast.net/
"You can't modify a constant, float upstream, win an argument with the
IRS, or satisfy this compiler" - actual MPW 68K compiler error message
_______________________________________________
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.