• 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: Autocompletion for NSTextFields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Autocompletion for NSTextFields (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: KVO of nested objects
  • Next by Date: Carbon sheet making my Cocoa window unmovable - any resolution?
  • Previous by thread: Autocompletion for NSTextFields
  • Next by thread: regarding Cut-Copy-Paste of selected rows in outlineView.
  • Index(es):
    • Date
    • Thread