Re: reading an NSView scrolling position
Re: reading an NSView scrolling position
- Subject: Re: reading an NSView scrolling position
- From: John Randolph <email@hidden>
- Date: Fri, 28 May 2004 16:15:00 -0700
On May 28, 2004, at 1: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
Mel,
You can ask an NSScrollView for its horizontal or vertical scroller,
and then ask that scroller for its value, which will be in the range of
0 to 1.0.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.