Re: NSTextStorage subclass question

2010-02-07 Thread Gideon King
Thanks for mentioning that - I did actually pick that one up along the way and changed it, but it appears that I still needed to delay the selection change on the text view as well. On 07/02/2010, at 12:42 PM, Kyle Sluder wrote: > On Sat, Feb 6, 2010 at 6:17 PM, Gideon King wrote: >> I found t

Re: NSTextStorage subclass question

2010-02-06 Thread Kyle Sluder
On Sat, Feb 6, 2010 at 6:17 PM, Gideon King wrote: > I found the root cause of my problem - I was trying to call setSelectedRange > and setTypingAttributes on my text view in the textStorage processEditing > method, and the system didn't like that. I have altered it to use > perform...afterDela

Re: NSTextStorage subclass question

2010-02-06 Thread Gideon King
I found the root cause of my problem - I was trying to call setSelectedRange and setTypingAttributes on my text view in the textStorage processEditing method, and the system didn't like that. I have altered it to use perform...afterDelay: and it works fine now. Gideon___

NSTextStorage subclass question

2010-02-06 Thread Gideon King
Hi, I have an NSTextStorage subclass, and I need to do post-processing that will replace the text with an altered version. From what I can understand, it appears that in order for me to pick it up once all the user changes are done, I need to override the processEditing and change the text to w