• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom NSTextStorage and Large Documents Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSTableView: drop on cell
  • Next by Date: Re: best way to compare selectors?
  • Previous by thread: Re: MEETING: Chicago CocoaHeads / CAWUG Tuesday May 8th - Input Fuzzing
  • Next by thread: Joseph has Tagged you! :)
  • Index(es):
    • Date
    • Thread