• 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: Give a menu keyboard focus - in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Give a menu keyboard focus - in code


  • Subject: Re: Give a menu keyboard focus - in code
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 09 Oct 2011 14:41:27 -0700

OK, the CGEventCreateMouseEvent() I described in my previous message seems to work, except for one detail.  How to I find the location of, in particular, a Status Menu item, in CG "global" coordinates?  It looks like that's the hardest part!

Jerry

On 2011 Oct 09, at 14:16, Jerry Krinock wrote:

> Update: I'm "borrowing" the mouse using CGEventCreateMouseEvent().  It seems like it might work, but sure seems like a kludge, and many lines of code to do something very simple.
>
> Any better ideas would be appreciated.
>
> On 2011 Oct 09, at 12:31, Jerry Krinock wrote:
>
>> Is there any code which can *click* a menu, to give it keyboard focus, so that the user may then select an item in the menu using arrow keys?


_______________________________________________

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

  • Follow-Ups:
    • Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
      • From: Jerry Krinock <email@hidden>
References: 
 >Give a menu keyboard focus - in code (From: Jerry Krinock <email@hidden>)
 >Re: Give a menu keyboard focus - in code (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Give a menu keyboard focus - in code
  • Next by Date: NSComboBoxCell & AutoComplete
  • Previous by thread: Re: Give a menu keyboard focus - in code
  • Next by thread: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
  • Index(es):
    • Date
    • Thread