Re: Auto pop-up list from State field in Address book database
Re: Auto pop-up list from State field in Address book database
- Subject: Re: Auto pop-up list from State field in Address book database
- From: Peter Ammon <email@hidden>
- Date: Wed, 25 Jun 2008 18:52:23 -0700
In fact, NSPopUpButton does do type-select when it has key focus, even
if not popped up. However, there is no visual feedback until you
finish typing, so this doesn't work as well as it might.
On Jun 25, 2008, at 5:30 PM, Gary L. Wade wrote:
I don't think NSPopUpButton will accept key events if the menu is
not active, although once the menu is active, it will accept key
events, but you could probably embed your NSPopUpButton control in a
custom control that does take key events and then filter those into
choosing an item in the menu. At least that's pretty much how I did
it for a Carbon-based application years ago.
If you decide to try it, just imagine how much fun you're going to
have getting past that newbie phase!!!! ;-)
Of course, someone might have already done that and released the
source code, so try a search on "NSPopUpButton" and a number of the
different key-based messages, such as keyDown.
Hi Guru dudes,I am working on a simple application where I want to
get a
list from a file out of a file. Maybe XML or a flat text file and I
want the
list to pop up and drill down based on what I type so that I can
select
them. Like many web sites do using AJAX technologies.
Can anyone tell me where to look for the equivalent in Cocoa please?
I am a newbie so please be gentle with the terminology.
Cheers
Paul Randall
_______________________________________________
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