Re: How to programmatically open an NSComboBox's list?
Re: How to programmatically open an NSComboBox's list?
- Subject: Re: How to programmatically open an NSComboBox's list?
- From: Dmitri Goutnik <email@hidden>
- Date: Thu, 17 Jul 2008 22:27:35 +0400
Hello Jens,
On Jul 17, 2008, at 8:26 PM, Jens Alfke wrote:
I have an NSComboBox, and I want to automatically pop open the list,
without the user having to click the button. But I can't find
anything in the API of either the control or the cell to do this.
Did I overlook something?
I know it's hackish but simulating down arrow worked for me...
CGPostKeyboardEvent(0, 125, true);
CGPostKeyboardEvent(0, 125, false);
Unfortunately, this seems only to work for editable combos.
- Dmitri
_______________________________________________
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