• 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
NSTextStorage and Insertion Point - repost
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: RE: dealloc not beeing called... why?
  • Next by Date: NSView subclasses and app design
  • Previous by thread: NSUserDefaults, NSArgumentDomain
  • Next by thread: NSView subclasses and app design
  • Index(es):
    • Date
    • Thread