• 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: NSComboBox Suggestions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBox Suggestions


  • Subject: Re: NSComboBox Suggestions
  • From: Paul Collins <email@hidden>
  • Date: Mon, 22 Oct 2007 17:53:21 -0700


On Oct 22, 2007, at 3:23 PM, Martin Redington wrote:

Is the behaviour of Apple Mail's To Field what you're after?

That should give you some clues as to how to make it Mac like, although I've never looked at the implementation.

I'd actually like a To: control like that in one of my apps, but I've not been able to find a pre-rolled one (that handles the email address retrieval as well).

NSTokenField (new in 10.4) supports auto-completion drop-downs through delegate methods. It holds/edits an array of your custom objects. It can display those Apple Mail address field blue lozenges, but I just noticed that NSTokenStyle constant NSPlainTextTokenStyle (no lozenge) might work for Mike's database app. Even if you don't use it, you might get a design pattern idea from it.


Like Martin implies, for "To field" use, I had to write my own access to the Address Book, and other things, that took about 400 lines of code and a lot of time. As I recall, ABPicker has a lot more "for free" re Address Book access if you don't mind its interface.

--Paul Collins

** Gracion Software LLC                   http://www.gracion.com/

_______________________________________________

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


References: 
 >NSComboBox Suggestions (From: "Mike Cahill" <email@hidden>)
 >Re: NSComboBox Suggestions (From: Martin Redington <email@hidden>)

  • Prev by Date: [Slightly OT] Origin of CGSPrivate.h?
  • Next by Date: NSStepper and NSMatrix
  • Previous by thread: Re: NSComboBox Suggestions
  • Next by thread: Setting text color in a NSFormCell
  • Index(es):
    • Date
    • Thread