Re: Verification of a bug
Re: Verification of a bug
- Subject: Re: Verification of a bug
- From: Scott Anguish <email@hidden>
- Date: Thu, 28 Mar 2002 05:10:34 -0500
I've tried this now, and I needed to actually have the code set the
selection to a different location, and then back to what was selected.
(ugh)
But this seems like a bug, and should be reported I suppose
And the problem pops up again if you do something else first
On Wednesday, March 27, 2002, at 04:11 PM, Greg Titus wrote:
Now, the NSTextView WILL add a new undo object if you change the
selection before starting to type again. (Which makes sense, the user
likely thinks of this as two different typing operations which should
be undone separately.)
So my suggestion is that on save, you simply call [myTextView
setSelectedRange:[myTextView selectedRange]], and see if that resets
the internal flag in NSTextView and causes a new undo operation to be
pushed on the next time you type.
_______________________________________________
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.