Changing the size of an NSComboBoxCell
Changing the size of an NSComboBoxCell
- Subject: Changing the size of an NSComboBoxCell
- From: "Michael Becker" <email@hidden>
- Date: Sun, 28 Dec 2003 20:20:00 +0100
Hi!
I have an NSTableView with NSComboBoxCells in one column. Because the
TableView also contains thumbnail images, the row height is at about 70
pixels
The Comboboxes automatically size to fit that height, like a TextField,
which looks really weird.
I tried subclassing NSComboBoxCell and overriding drawWithFrame: (and
resizing the NSRect that gets passed to the method), which worked for the
looks of it. But strangely, to unfold the option-list, you still have to
click in the rightmost area of the cell, even when I (graphically) put the
down-arrow more to the left.
And when I double-click (due to the NSTableView, I guess) the cell to edit
the combobox's text, the editing area still fills up the entire cell.
I am a little bit lost. What do I need to do in order to resize the
combobox?
Bye,
Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.