Re: Auto-complete in an NSTextView
Re: Auto-complete in an NSTextView
- Subject: Re: Auto-complete in an NSTextView
- From: Nicko van Someren <email@hidden>
- Date: Tue, 18 Apr 2006 14:32:13 +0100
On 17 Apr 2006, at 18:25, Douglas Davidson wrote:
On Apr 17, 2006, at 10:02 AM, Theodore H. Smith wrote:
How would I go about making some kind of auto-complete menu, in an
NSTextView?
The examples you mention probably roll their own, but here is a
little demo I put together for WWDC a few years back. It's fairly
crude, but it at least is something to start from.
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?
Nicko
_______________________________________________
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