• 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
NSTextView undo problem with character after space
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView undo problem with character after space


  • Subject: NSTextView undo problem with character after space
  • From: Gideon King <email@hidden>
  • Date: Sat, 7 Dec 2002 08:29:22 +0800

I have a text view that I place on another view to support editing text
in my application. Typing in text, and deleting text works fine, but
undo of typing has a strange problem. Say I typed something like:

abc def ghi

then progressively undo my typing the following lines show the state
after each undo:

abc def gh
abc def g
abc def g (didn't delete the g)
abc def (no space after the f)
abc de
abc d
abc d (didn't delete the d)
abc (no space after the c)
ab
a

At the point where the character after the space is not removed, the
NSTextStorageDidProcessEditingNotification notification is not sent, so
it appears that it isn't just a UI issue.

Has anyone seen this behavior before? Any clues on how to fix this? I
am just using a standard textview.

Thanks

Gideon
_______________________________________________
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.

References: 
 >Re: [OT] newbie Perl question (From: Randall Crenshaw <email@hidden>)

  • Prev by Date: Re: using the GPL Quake code in a commercial game
  • Next by Date: Delegate methods for NSImageView (?)
  • Previous by thread: Re: [OT] newbie Perl question
  • Next by thread: Enhanced TableView (was: Printing two views, together)
  • Index(es):
    • Date
    • Thread