NSTextStorage and Insertion Point - repost
NSTextStorage and Insertion Point - repost
- Subject: NSTextStorage and Insertion Point - repost
- From: "Josh Ferguson" <email@hidden>
- Date: Tue, 9 Jul 2002 14:56:22 -0500
- Thread-topic: NSTextStorage and Insertion Point - repost
I posted this a couple days ago and didn't receive a response, so I'm reposting this in hopes of getting some response. I know there a few of you out there that know everything about subclassing NSTextStorage ;). The problem is: I've created a concrete subclass of NSTextStorage. When fixAttributesInRange is called, it's very possible that attributes are going to be changed outside the range that's passed to the method. If I call edit:range:changeInLength with the NSTestStorageEditedAttributes mask, the insertion point moves to the end of the range that was actually changed. If I don't call this, then the text is not re-evaluated and my syntax coloring gets all screwed up! Anyone have any pointers on controlling the insertion point from the TextStorage, or why calling edited:range:changeInLength would be moving the insertion point?
TIA
Josh Ferguson
_______________________________________________
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.