Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView undo problem with character after space



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.