• 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: Programmatically show NSPopUpButton menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically show NSPopUpButton menu?


  • Subject: Re: Programmatically show NSPopUpButton menu?
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 26 Oct 2006 18:06:00 -0400
  • Thread-topic: Programmatically show NSPopUpButton menu?

on 06/10/26 16:46, Keith Blount at email@hidden wrote:

> I would like to bring up the menu of an NSPopUpButton programmatically - ie.
> without the user having to click on the button itself. This may sound strange,

I was thinking of doing the same thing, but for a main menu.  I haven't
gotten around to trying it yet, but I read in the list archives that, in
general, to make simulated mouse clicks, you find the (x,y) location of the
control you want to click, and then feed this location to
CGEventCreateMouseEvent.  Give it a try and let me know if it works!


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Programmatically show NSPopUpButton menu?
      • From: Uli Kusterer <email@hidden>
References: 
 >Programmatically show NSPopUpButton menu? (From: Keith Blount <email@hidden>)

  • Prev by Date: Re: NSTimer question: How to fire at second 00, 05, 10 etc ?
  • Next by Date: My custom prefpane appears in "other". How do I move it?
  • Previous by thread: Programmatically show NSPopUpButton menu?
  • Next by thread: Re: Programmatically show NSPopUpButton menu?
  • Index(es):
    • Date
    • Thread