Re: Customising the behaviour of an NSTextFieldCell in an NSTableView
Re: Customising the behaviour of an NSTextFieldCell in an NSTableView
- Subject: Re: Customising the behaviour of an NSTextFieldCell in an NSTableView
- From: Jake Macmullin <email@hidden>
- Date: Fri, 7 Jan 2005 13:16:53 +1100
My understanding of NSComboBoxCell (and perhaps I'm wrong) is that
it'll do what I want - but won't allow someone to enter a selection
that is not already in the list. What I'm seeking to do is to allow
free-form text input but auto-complete previously entered values.
NSComboBoxCell won't do this will it?
Regards,
Jake MacMullin
On 7 Jan 2005, at 12:09 PM, glenn andreas wrote:
On Jan 6, 2005, at 5:30 PM, Jake Macmullin wrote:
I'm just getting back in to Cocoa after a bit of a hiatus - and I'm
still quite new to Objective-C, so please regard my questions in that
light.
I'd like to customise the behaviour of an NSTextFieldCell that I'm
using in an NSTableView. Basically, I want to do two things:
1). provide my own set of suggestions when complete: is called
2). call complete: after each key-stroke in the cell
This sounds a whole lot like a NSComboBoxCell - perhaps that might
work better? After all, it already is a subclass of NSTextFieldCell,
and effectively provides a list of things which can be used to
complete the list (though the delegate methods to provide that list
are normally used when NSComboBoxCell is in an NSComboBoxControl, and
not embedded in an NSTableViewColumn - but you can always subclass
NSComboBoxCell).
Glenn Andreas email@hidden
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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