How to Do a contentInset on a NSScrollView on a Mac

cocoa, ios, macos, nsscrollview, uiscrollview

Solution

You should try something like this

scrollView.automaticallyAdjustsContentInsets = NO;
scrollView.contentInsets = NSEdgeInsetsMake(offset, 0, 0, 0);

Problem

I am trying to do a contentInset on an NSScrollView the same way as iOS in a UIScrollView. There is no method to do this though. Is there anyway to achieve this? this picture should describe what I am trying to do: If anyone knows of a solution I would absolutely love to hear!! It's driving me nuts

Original source