• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: reading an NSView scrolling position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >reading an NSView scrolling position (From: Mel Walker <email@hidden>)

  • Prev by Date: Re: reading an NSView scrolling position
  • Next by Date: Receiving tracking rectangle events
  • Previous by thread: Re: reading an NSView scrolling position
  • Next by thread: HElp with importing headers
  • Index(es):
    • Date
    • Thread