• 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: Offsetting content of NSTable/NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Offsetting content of NSTable/NSOutlineView


  • Subject: Re: Offsetting content of NSTable/NSOutlineView
  • From: Keary Suska <email@hidden>
  • Date: Wed, 25 Jun 2014 07:45:32 -0600

On Jun 25, 2014, at 6:31 AM, Markus Spoettl wrote:

> Hi,
>
>  is there any way to insert a margin above the first row of an NSOutlineView in a way that when scrolling (in my case Y-axis only) it will scroll the content "through" its margin but when at topmost position, will leave the margin, effectively offsetting the content and scroller downwards by the margin.
>
> I can almost achieve the desired effect by returning an increased row height in
>
> -outlineView:heightOfRowByItem:
>
> by the desired margin for only the first row. Problem is the scroller still spans the entire height of the view.


This is just a wild stab, but have you considered/tried using a custom header view? I believe NSTableView is smart enough to accommodate a larger header. Then the only issue is making the visual/size changes when scrolling happens.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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: Offsetting content of NSTable/NSOutlineView
      • From: Markus Spoettl <email@hidden>
References: 
 >Offsetting content of NSTable/NSOutlineView (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Offsetting content of NSTable/NSOutlineView
  • Next by Date: NSTableView view based full width view
  • Previous by thread: Offsetting content of NSTable/NSOutlineView
  • Next by thread: Re: Offsetting content of NSTable/NSOutlineView
  • Index(es):
    • Date
    • Thread