Re: Saving position in NSTextView

2010-01-02 Thread Pascal Harris
Okay, I think I have this kind of sorted (courtesy of this source and, of course, Google) - so if anyone else needs to do this in the future, they can do it with this code: To save position: NSPoint containerOrigin = [textViewLarge textContainerOrigin]; NSRect visibleRect = [textViewLarge visible

Re: Saving position in NSTextView

2009-12-04 Thread Douglas Davidson
On Dec 4, 2009, at 9:30 AM, Pascal Harris wrote: I am writing an application which, amongst other things, can be used to read text files. These text files are rather long (could be more than 1MB), which isn't convenient for anyone to read in one sitting. The text files are not editable.

Saving position in NSTextView

2009-12-04 Thread Pascal Harris
I am writing an application which, amongst other things, can be used to read text files. These text files are rather long (could be more than 1MB), which isn't convenient for anyone to read in one sitting. The text files are not editable. I would like to be able to save the position in the te