• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView - a way to adjust column widths without a header?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSOutlineView - a way to adjust column widths without a header?
      • From: Graham Cox <email@hidden>
References: 
 >NSOutlineView - a way to adjust column widths without a header? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Why doesn't this work on my device?
  • Next by Date: Re: custom control's value change isn't being noticed by controller
  • Previous by thread: NSOutlineView - a way to adjust column widths without a header?
  • Next by thread: Re: NSOutlineView - a way to adjust column widths without a header?
  • Index(es):
    • Date
    • Thread