• 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: Customising the behaviour of an NSTextFieldCell in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Customising the behaviour of an NSTextFieldCell in an NSTableView
      • From: Steven Kramer <email@hidden>
References: 
 >Customising the behaviour of an NSTextFieldCell in an NSTableView (From: Jake Macmullin <email@hidden>)
 >Re: Customising the behaviour of an NSTextFieldCell in an NSTableView (From: glenn andreas <email@hidden>)

  • Prev by Date: Preventing deminiaturization
  • Next by Date: Re: Problems with NSTimer and NSRunLoop/CFRunLoop
  • Previous by thread: Re: Customising the behaviour of an NSTextFieldCell in an NSTableView
  • Next by thread: Re: Customising the behaviour of an NSTextFieldCell in an NSTableView
  • Index(es):
    • Date
    • Thread