Re: Auto-complete in an NSTextView
Re: Auto-complete in an NSTextView
- Subject: Re: Auto-complete in an NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Tue, 18 Apr 2006 08:32:58 -0700
On Apr 18, 2006, at 6:32 AM, Nicko van Someren wrote:
That's a very helpful example. On a closely related note, what do
you feel it the best method for attaching such an auto-completion
to an NSTextField? I assume that I'm going to have to customise an
NSTextFieldCell with my own -setUpFieldEditorAttributes: but I'm
not sure if I can simply add some code to switch the delegate of
the window-wide field editor to point to the completion bits or if
I need to make my own field editor object. Do you have an opinion?
The text field usually acts as the field editor's delegate, so you
could potentially use a custom text field subclass. You could also
consider using a combo box.
Douglas Davidson
_______________________________________________
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