NSTableView/NSOutlineView variable row height
NSTableView/NSOutlineView variable row height
- Subject: NSTableView/NSOutlineView variable row height
- From: Kevin Meaney <email@hidden>
- Date: Mon, 1 Sep 2008 18:58:06 +0100
Hi,
I'm new to NSTableView and more specifically NSOutlineView. I want to
have variable height rows in the outline view, and I need to keep
Tiger compatibility.
Tiger provides the informal protocol method heightOfRowByItem that
looks like it can do the job I want. However it does not seem to
provide a way of obtaining the cell for the item. I would like to ask
the cell (NSTextFieldCell) what its cell size is by calling cellSize
or cellSizeForBounds since it should know how big it needs to be when
I have set the text for the text field cell.
Since I could not find a way to make this work I've been looking for a
workaround. I have come across RowResizableViews which looks like it
might be able to do what I want, however when I ran the sample app it
looks quite buggy running in Leopard.
I feel like I am missing something that should be obvious. Pointers
would be helpful or a suggestion for something else to try.
Many thanks.
Kevin
_______________________________________________
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