Re: Determining width of a cell in an NSOutlineView
Re: Determining width of a cell in an NSOutlineView
- Subject: Re: Determining width of a cell in an NSOutlineView
- From: Eric Gorr <email@hidden>
- Date: Mon, 5 Jan 2009 10:28:36 -0500
On Dec 19, 2008, at 6:03 PM, Corbin Dunn wrote:
For that, you want to use -cellSizeForBounds: -- pass in a large
height, but a constrained width. Use a width that is equal to the
[tableColumn width] minus indentation * (level + 1) ---- although,
the actual value that outlineview uses for indentation is dependent
on some internal logic (ie: if you are using "group rows", or the
"source list highlighting style"). But, this should give you a value
that is fairly close to what you want.
Vacation got in the way of replying sooner...
Thanks for the information.
While I believe this will work in my specific situation, I have filed
a bug (rdar://6472757) requesting that a method be added which can
simply return the width, taking into account things like "group rows"
and "source list highlighting style".
_______________________________________________
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