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 text file so 
that a reader can come back to file at a later time and not have to hunt for 
the last sentence that they read.

My research shows that I can do half of what I need using NSRange - using 
scrollRangeToVisible it seems that I can scroll to a given range (allowing the 
reader to resume where they left off).  Sadly, I can't work out how I can save 
a range without the reader selecting text in the window first (hardly user 
friendly!).  I need this to work invisibly - i.e. the user closes the window, 
or the app, and when the window is reopened Presto!  the window contains the 
same view of the text as it did previously.  

Perplexed.  Any help that you can provide would be most welcome.  
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to