Re: NSTableView subclass with column-spanning text?
Re: NSTableView subclass with column-spanning text?
- Subject: Re: NSTableView subclass with column-spanning text?
- From: Don Swatman <email@hidden>
- Date: Tue, 21 Sep 2004 10:52:06 +0100
I had to do something similar, but required variable sized row height
as well. I achieved this by deriving of NSTableView, then overriding
rectOfColumn:
rectOfRow:
rowsInRect:
rowAtPoint:
frameOfCellAtColumn:row:
drawRow:clipRect:
Where necessary I call the super before implementing my own code. This
all seems to work (as I guess the class authors use these functions and
not just multiply rowHeight).The only issue is that the text line
display can become a bit fractured if a column is dragged. I reckon I
can cure this by implementing tableViewColumnDidMove: delegate and
forcing a redraw.
Don.
On 17 Sep 2004, at 5:44 pm, David Feldman wrote:
I'm looking to implement a subclass of NSTableView in which each row
can have a column-spanning sub-row for longer, row-related text (like
a note of some kind). See attached image. Any thoughts on an effective
way to implement this that takes advantage of as much of the existing
NSTableView code as possible?
Thanks,
--Dave
<ext-tableview.gif> _______________________________________________
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
_______________________________________________
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