Re: Offsetting content of NSTable/NSOutlineView
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