Re: Drawing Across NSTableView Columns
Re: Drawing Across NSTableView Columns
- Subject: Re: Drawing Across NSTableView Columns
- From: Jerry Krinock <email@hidden>
- Date: Sun, 26 Apr 2009 20:53:37 -0700
On 2009 Apr 26, at 15:29, K. Darcy Otto wrote:
(d) I read about drawing within a custom NSTextField Cell here: http://www.cocoabuilder.com/archive/message/cocoa/2004/3/1/100423
I think this might still make the image break at each row.
This is the best option, and yes your line will be broken at a row
boundary, because NSTableView has an intercell spacing.
One option is to set the table's intercellSpacing to { someX, 0.0 }
but that might have other undesired side effects.
You could also subclass your NSTableView and in your subclass override
(and don't forget to invoke super) in -drawRect:. In that method,
after invoking super, you could draw complete lines from the first row
all the way down to the bottom and then none will be broken.
In any case, use NSBezierPath to draw the lines.
_______________________________________________
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