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: Graham Cox <email@hidden>
- Date: Fri, 27 Feb 2009 12:19:03 +1100
On 27/02/2009, at 12:13 PM, Corbin Dunn wrote:
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.
Ewww... :(
OK, thanks. What about cursor handling? Is there a right way or wrong
way to go about that? (i.e. show the appropriate resizing cursor when
close to the borders)
--Graham
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