Re: NSTextView scrolls to top when text storage changes

2012-07-06 Thread Martin Hewitson
OK, I found the problem. Turns out I had left the textview associated with more than one textstorage. I'm surprised that this was the only symptom. In detail, when switching tabs in the editor, I forgot to remove the textview from all other text containers before assigning it to the file associa

NSTextView scrolls to top when text storage changes

2012-07-06 Thread Martin Hewitson
Dear List, I have a document managing app which has a project search feature for searching through the project's managed files (see thread "Dynamic modification of text search results" earlier this week). When I find search matches I add an attribute to the textstorage in which the search ter