Re: NSOutlineView - a way to adjust column widths without a header?
Re: NSOutlineView - a way to adjust column widths without a header?
- Subject: Re: NSOutlineView - a way to adjust column widths without a header?
- From: Corbin Dunn <email@hidden>
- Date: Thu, 26 Feb 2009 17:13:57 -0800
Short answer: automatically, no. Manually, probably. All the logic is
implemented in NSTableHeaderView. You'd have to subclass NSTableView
and do the hit testing and work yourself in -mouseDown: and not call
super when you do that logic. Just call setWidth: on the header when
you want it to change sizes, and respect min/max sizes.
corbin
On Feb 26, 2009, at 4:19 PM, Graham Cox wrote:
I have an outline view with several columns. I don't really need the
column headers but I'd like to retain the ability to drag the column
widths (by dragging at the boundaries between each perhaps). Is
there a way to do this?
--Graham
_______________________________________________
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