NSScrollView frame and flipped documentView

Posted by StrAbZ on Stack Overflow See other posts from Stack Overflow or by StrAbZ
Published on 2010-04-29T09:12:37Z Indexed on 2010/04/29 9:17 UTC
Read the original article Hit count: 434

Filed under:
|
|
|

Hi,

I have problems with NSScrollView, It is not displayed the way I want. Yes I know there is a lot of post about it around the web, I need to override the isFlipped, in order to make it return YES, in my NSView subclass.

Ok, it's done, so now, my scrollView scroll from top to bottom, and not in the reverse way, as it was before overriding isFlipped.

But, this is the second part, my real problem, which I didn't found any answer on the web, how the hell I'm supposed to code, or create my view in interface builder, if everything is flipped? If I put something at the top, it is displayed a the bottom… do you have any magic trick to handle that?

And my last problem, is the NSScrollView frame. before setting the documentView of my scroll view, everything is fine, the scrollView is displayed at the place I choose, but, when I set the document view, it looks like the scrollview frame looks bigger, so I have to resize it…. is this a normal behavior?

Thank you very much.

© Stack Overflow or respective owner

Related posts about nsscrollview

Related posts about objective-c