Re: Autocompletion for NSTextFields
Re: Autocompletion for NSTextFields
- Subject: Re: Autocompletion for NSTextFields
- From: Andrew Zamler-Carhart <email@hidden>
- Date: Tue, 26 Oct 2004 14:13:53 +0100
Jesus,
On Oct 26, 2004, at 12:01 PM, Jesus De Meyer wrote:
Is there a possibility to have an NSTextField respond to the complete
method? I noticed NSTextField has some interesting complete delegate
methods, and pressing F5 seems to call the complete method, but doing
something like [myTextField complete:self] doesn't work. I'd like to
do something like what Safari does when you type a url in the
textfield.
One approach would be to use an NSComboBox, which is a subclass of
NSTextField that provides autocomplete functionality. The
NSComboBoxDataSource methods allow a fairly high degree of
customizability. And if your users are mouse-inclined, they can click
the little blue arrow to see a list of choices (if that makes sense for
your app).
Andrew
_______________________________________________
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