Re: [NSTableView/NSOutlineView] How can we draw a custom border?
Re: [NSTableView/NSOutlineView] How can we draw a custom border?
- Subject: Re: [NSTableView/NSOutlineView] How can we draw a custom border?
- From: Stephane Sudre <email@hidden>
- Date: Sat, 8 Mar 2008 21:08:16 +0100
On Mar 8, 2008, at 7:58 PM, Kyle Sluder wrote:
On Sat, Mar 8, 2008 at 1:21 PM, Stephane Sudre <email@hidden>
wrote:
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.
Dunno where/if this is documented, but the header view is obtained by
sending a message to the NSScrollView's document view (I think it's
-headerView). You could override this method in an NSOutlineView
class to return an instance of your custom view.
Brilliant.
I was too focused on trying to find a workaround for the lack of
copyWithZone: to realize NSTableHeaderView didn't really have any
cell and is getting its data from the columns.
_______________________________________________
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