Re: Programmatically opening an NSComboBox list
Re: Programmatically opening an NSComboBox list
- Subject: Re: Programmatically opening an NSComboBox list
- From: "Paul Sanders" <email@hidden>
- Date: Sat, 21 Feb 2009 16:11:10 -0000
And indeed how do you programatically close it, which is what I would like
to do.
To open it, I'm guessing you might work out where the button is and post a
mousedown / mouse up event pair with those coordinates. A little clunky
perhaps but it sounds like it ought to work. Alternatively, send a
mouseDown and then a mouseUp to the button directly. A superview can
enumerate its subviews so you should be able to track it down.
And hello to all at Cocoa-Dev, my first post. Coming as I do from the
Windows world I am finding learning Cocoa both educational and fascinating.
Makes Win32 (and Windows Forms) look positively stoneage. I'm just worried
I might wear out the square bracket keys on my keyboard :)
And a question: is there a utility, similar to Spy++ under windows, Which
can show you the window and view hierarchy of a running app? I find Spy++
extremely useful on occasion when doing Windows development.
Regards,
Paul Sanders.
----- Original Message -----
From: "Peter Hudson" <email@hidden>
To: <email@hidden>
Sent: Saturday, February 21, 2009 12:17 PM
Subject: Programmatically opening an NSComboBox list
Have trawled the archives and can find only a suggestion to do a
performClick on the combo ( which fails ) or an undocumented method.
I notice from the docs that the button and text field are encapsulated
in an NSComboBoxCell. Have checked the cell docs - can't see any
means to get to the button.
I also can see no means to get to it via the NSControl subclass.
Any help / suggestions appreciated.
PH
_______________________________________________
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
_______________________________________________
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