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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to