Mailing Lists: Apple Mailing Lists

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

Is there someway to disable NSComboBoxCell's drop down menus?



In this app I'm working on, I have some comboboxes, in an NSTableView. Because they are in an NSTableView, I must use NSComboBoxCell for every row of the column, despite that sometimes NSComboBoxCell is overkill.

Some rows have a set of allowable values. Some rows let the user enter any value. For the restricted value range, the combobox is perfect.

However, when the user can enter any value, the NSComboBoxCell is superfluous. The drop down menu contains zero items in such a case. This is ugly, and also slows the user down when he presses the menu by accident.

Is there someway to disable NSComboBoxCell's drop down menus?

I can't find any documentation on how to do this. Would I need to resort to undocumented features? (or maybe just leave it as is). Or is there some normal way to do this that I'm overlooking?

--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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


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.