Re: reading an NSView scrolling position
Re: reading an NSView scrolling position
- Subject: Re: reading an NSView scrolling position
- From: Public Look <email@hidden>
- Date: Fri, 28 May 2004 18:28:53 -0400
Read about the difference between a view's frame and bounds. See
-visibleRect. In fact, you van probably do something as simple as the
following.
NSPoint visibleOrigin = [someView visibleRect).origin;
...
// when putting the view back
[someScrollView setDocumentView:someView];
[someView scrollToPoint:visibleOrigin];
On May 28, 2004, at 4:44 PM, Mel Walker wrote:
Is there a selector to read an NSView scroll position? I see the
scrollPoint: selector to set it, but how do I read it back?
Just in case...
What I want to do is: I have an NSView in a scroll view in a window. I
want to be able to enter full screen mode, move the view into the full
screen, and then later move it back to the scrollview/window. The
moving works fine, but if the scroll position is not (0,0), I get
visual irregularities. So, I'd like the save the scroll position, and
put it back afterwards.
Mel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.