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.

The background of this is that a certain new OSX version has a nice feature that allows your window's contentView to span the entire window, underneath the title and toolbar area (you probably have seen it in the WWDC keynote or technical videos). The effect I'm after actually is implemented by NSTable/OutlineView when the window doesn't use the full-size contentView and the scrollView starts right below the title bar. However, I do need a full-size contentView and in that case, I don't know how to achieve it.

So it might be plain obvious how to do this kind of offsetting (even in 10.9) but I failed to find out how.

Before anyone suggests asking in the devforums, I did. It appears that any technical questions by developers are completely ignored there. I'm beginning to think there is a secret place where Apple directs people they want to hear feedback from.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to