• 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: Fri, 27 Feb 2009 08:26:26 -0800

On Feb 26, 2009, at 5:19 PM, Graham Cox wrote:

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)

NSTableHederView uses the cursor rect stuff; so, you'll have to do that too!


- (void)addCursorRect:(NSRect)aRect cursor:(NSCursor *)anObj;
- (void)removeCursorRect:(NSRect)aRect cursor:(NSCursor *)anObj;
- (void)discardCursorRects;
- (void)resetCursorRects;

corbin
_______________________________________________

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


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

  • Prev by Date: Re: Compile errors
  • Next by Date: Re: Why doesn't this work on my device?
  • Previous by thread: Re: NSOutlineView - a way to adjust column widths without a header?
  • Next by thread: Custom button states?
  • Index(es):
    • Date
    • Thread