[NSTableView/NSOutlineView] How can we draw a custom border?
[NSTableView/NSOutlineView] How can we draw a custom border?
- Subject: [NSTableView/NSOutlineView] How can we draw a custom border?
- From: Stephane Sudre <email@hidden>
- Date: Sat, 8 Mar 2008 19:21:24 +0100
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 (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