• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Expanding an NSMenuItem programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Expanding an NSMenuItem programmatically (From: "Daniel Angermeier" <email@hidden>)

  • Prev by Date: Screen Resolution
  • Next by Date: Re: CoreData, image storage - NSImage or CGImage?
  • Previous by thread: Expanding an NSMenuItem programmatically
  • Next by thread: NSBundle pathForResource:ofType:
  • Index(es):
    • Date
    • Thread