I would like to draw a custom dashed border for a specific NSOutlineView (*).

I sub-classed NSScrollView to do this. The problem is that the NSTableHeaderView is drawn after and over the NSScrollView. And so the topline of the NSTableHeaderView is drawn over my nice dashed line.

I'm looking for a simple way to clip the NSTableHeaderView drawing so that it does not draw over my border.

So far I've tried or investigated the following things:

- changed the size and position of the _headerClipView

- categories of NSTableHeaderCell, NSTableHedaerView

- looking for a private method.

- changing the clipping area from different location.

Maybe it's possible in IB 3 to set the class for the NSTableHeaderView of a NSOutlineView but this would ruin my nib file since I'm developing on Tiger.

Any tip?




(*) don't worry about the HIG, it makes sense in this case.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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