Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NScomboBox subclassing

NScomboBox subclassing
Thread Tools
3R1C
Mac Enthusiast
Join Date: Oct 2001
Status: Offline
Reply With Quote
Mar 31, 2005, 06:33 AM
 
I like the way comboBoxes can autocomplete, but I dont particularly need the pulldown. how can I subclass NSComboBox to look like an NSTextField?
3R1C
     
techtrucker
Senior User
Join Date: Feb 2003
Location: USA
Status: Offline
Reply With Quote
Apr 3, 2005, 09:55 AM
 
Man, I've tried to think about how I would implement what you're looking to do...I am probably wrong here but I would have to say instead of sublassing NSComboBox I would use a regular text field, maintain the list of items internally, and use controlTextDidChange to accomplish the autocomplete. Do you want users to be able to add items to the list or is it a fixed list?
MacBook 2.0 160/2GB/SuperDrive
Lots of older Macs
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:33 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,