I'm re-sending this, since it seems to have been truncated completely by the time it got to the list. Don't know what happened; the copy in my Sent mailbox looks just peachy.
-----

I'm helping someone with a problem concerning NSComboBox whose contents come from a binding to an NSArrayController, and is set to autocomplete.

The behavior: Window opens with combobox populated from its binding. Let's say the contents are

Doe
Jones
Smith

and the textfield contains "Jones". If we start typing "Smi" it correctly autocompletes to "Smith". HOWEVER, it doesn't *select* the item "Smith", it *edits* the current selection to be "Smith", so that the list then ends up as

Doe
Smith
Smith

Currently, there is no custom code behind this, it's all set up via IB. Do we need to implement a custom -completedString:, and a custom IB action that selects the list item that satisfies the completion? Or what?

There seems to be a real dearth of sample code for this; there are several very similar questions in the archives, but none of them were sufficiently answered (if at all).


Thanks!
randy
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to