Re: NSLayoutManager and NSTextView problems
Re: NSLayoutManager and NSTextView problems
- Subject: Re: NSLayoutManager and NSTextView problems
- From: Rob Minerick <email@hidden>
- Date: Fri, 21 Nov 2003 16:15:34 -0600
That seems to have done the trick, thanks - I burned several hours on
that one.
Conceptually, I'm still unclear as to why that was happening. Shouldn't
the selection automatically be reset when the textStorage is swapped?
Or is this something that is useful in some context that I can't think
of? Anyway, thanks once again.
--
Rob Minerick
email@hidden
I somehow forgot to mention that the problem comes when I try to
change the new NSTextStorage object as such:
[newTextStorage beginEditing];
[newTextStorage setAttributedString:RTFD];
[newTextStorage endEditing];
From the bt, my best guess is that the associated text view still has
a stale selection left over from the previous contents. I'm not sure
why that is happening, but try resetting the selection when you change
the contents.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.