• 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
Saving/Restoring NSScrollView's position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Saving/Restoring NSScrollView's position


  • Subject: Saving/Restoring NSScrollView's position
  • From: James Maxwell <email@hidden>
  • Date: Sat, 03 Dec 2011 10:31:00 -0800

This may have a simple answer, but I can't seem to find it.
I want my document's scroll view to restore the scroll position when opening from a file. The default behaviour seems to be to set it back to {0, 0} (i.e., so that my document's view always returns to the upper-left corner). Is there a simple way (a flag, maybe) to tell it to restore to the last scroll position? If not, how do I add this behaviour?

Thanks in advance for any help.

J.


------------------------------------------------------
James B. Maxwell
Composer/Researcher/PhD Candidate






_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Saving/Restoring NSScrollView's position
      • From: Conrad Shultz <email@hidden>
  • Prev by Date: Re: Serious iPhone 4s & iCloud issue
  • Next by Date: Re: Saving/Restoring NSScrollView's position
  • Previous by thread: Re: Serious iPhone 4s & iCloud issue
  • Next by thread: Re: Saving/Restoring NSScrollView's position
  • Index(es):
    • Date
    • Thread