Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView with NSComboBoxCells




On Feb 17, 2006, at 4:27 PM, Robert Brown wrote:

I have an NSTableView that I'd like to edit using NSComboBoxes. How hard is this? Does it mean subclassing NSTableView, or is there an easier way?

I don't know if this was the right way, but here's what I did:

1 Drop a comboboxcell on the target column in IB
2 Override NSTableColumn's - (id)dataCellForRow:(int)row to use a textfield for the columns not using the combobox. While you're in there you can tweak the configuration of the CB.


Tony
3 Cats And A Mac
http://www.3caam.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSTableView with NSComboBoxCells (From: Robert Brown <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.