Re: NSComboBoxCell in a NSTableView
Re: NSComboBoxCell in a NSTableView
- Subject: Re: NSComboBoxCell in a NSTableView
- From: Timothy Reaves <email@hidden>
- Date: Sat, 24 Oct 2009 11:00:13 -0400
On Oct 24, 2009, at 10:32 AM, Stamenkovic Florijan wrote:
On Oct 24, 2009, at 10:04, Timothy Reaves wrote:
What is the correct way to size this? I have it added, and it's
used. But by default, it doesn't size to hold it's content. I can
set he width of the table column to a better width, but I can't
seem to find how to size the height.
Is there any way to get the table view - or column - to auto-size
to correctly hold the combo box cell?
-[NSTableView setRowHeight]
NSTableView won't autosize, but somewhere in your code you can set
the row height to the height of the cell. Also you might consider
setting a different control size on the cell.
F
Thanks for that. I guessed I overlooked it because the width is set
on the column, and I figured that is where the height would be too.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden