Re: Expanding an NSMenuItem programmatically
Re: Expanding an NSMenuItem programmatically
- Subject: Re: Expanding an NSMenuItem programmatically
- From: Jerry Krinock <email@hidden>
- Date: Mon, 13 Aug 2007 15:10:47 -0700
On 2007 Aug, 13, at 13:11, Daniel Angermeier wrote:
Is there any way to open an NSMenuIItem (that has a
submenu)programmatically, so that the submenu (in main menu nib) stays
visible ?
So is there something like a "performClick" on NSMenuItem ?
I couldn't find any way neither in the docs or archives to do it...
Bad news: I don't know.
But I have been wanting to do the same thing, as I believe it would
be helpful for new users of my app to have the most relevant submenu
expanded when they launch my app for the first time, and are staring
at the menu bar wondering what to click.
At least if NSMenu/Item would give us some screen coordinates, we
might be able to do something yucky with System Events.
Well, if anyone knows, you'll make two people and their users happy.
Jerry Krinock
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden