Saving/Restoring NSScrollView's position
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