Re: NSOutlineView Row Heights
Re: NSOutlineView Row Heights
- Subject: Re: NSOutlineView Row Heights
- From: "I. Savant" <email@hidden>
- Date: Tue, 17 Oct 2006 11:10:57 -0400
If you know NSOutlineView supports this, why not look in
NSOutlineView's documentation? :-)
What you're looking for is the delegate method: -
outlineView:heightOfRowByItem: ... NSTableView has a similar delegate
method.
I hope this helps.
--
I.S.
On Oct 17, 2006, at 10:59 AM, Dan Donaldson wrote:
in 10.4, NSOutlineView has support for varying row heights.
question is, how are row heights set? If I subclass NSCell (or
NSTextCell) and manipulate the value returned by cellSize, is that
all there is to it?
I've looked at the RowResizeableOutlineView project and used some
ideas in it to get where I am, but I'm not clear on the issue
above. In case it's relevant, this is a Core Data Document Based
project
The second part of the question would be, what do I use to
calculate the height required for a textcell with an arbitrary
amount of text in it, for a given width?
Many thanks in advance from a perma-newbie for any help...
Dan Donaldson
dan[at]omnivore[dot]ca
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden