• 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
Re: Verification of a bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Verification of a bug (From: Greg Titus <email@hidden>)

  • Prev by Date: Re: Document Loading Problem
  • Next by Date: Fwd: Undeliverable mail for mailto:email@hidden
  • Previous by thread: Re: Verification of a bug
  • Next by thread: Re: Verification of a bug
  • Index(es):
    • Date
    • Thread