Custom NSTextStorage and Large Documents Problem
Custom NSTextStorage and Large Documents Problem
- Subject: Custom NSTextStorage and Large Documents Problem
- From: Seth Willits <email@hidden>
- Date: Sat, 5 May 2007 01:12:44 -0700
I have a custom text storage object, and in large files, I'm noticing
that when typing a single key near the end of document, -
processEditing triggers invalidateAttributesInRange which calls
fixAttributesInRange which starts asking for the
attributesAtIndex:effectiveRange: all the way back to the beginning
of the document for some crazy reason that I can't figure out.
In replaceCharactersInRange:withString: I'm calling [self
edited:NSTextStorageEditedCharacters range:range changeInLength:dif];
with range as {loc, 0}, and dif as 1 (if typing a single character),
so the range to invalidate/fix should simply be a single character,
or at the very least not the entire document!
Any ideas?
Thanks,
--
Seth Willits
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden