• 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: Undo logic location?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Undo logic location?


  • Subject: Re: Undo logic location?
  • From: mmalcolm crawford <email@hidden>
  • Date: Thu, 6 Jan 2005 10:10:44 -0800


On Jan 6, 2005, at 8:07 AM, glenn andreas wrote:

Everything works great, until they go to undo. Suppose that the margin value was 0.5 and then they typed in 1.234. So at this point they hit "undo" and expect the result to return to 0.5. Unfortunately, because the setter had been called for each successive value (which is how the model gets updated so that the preview view can display correctly), each one of those intermediate keystrokes were recorded as separate actions, so instead of showing 0.5, it shows 1.23, and then 1.2, and then 1. and then 1, and then finally reverts back to 0.5

Without knowing more about your actual set-up it's difficult to tell, but is it possible that you might be able to simply begin and end undo grouping before and after (respectively) the text is edited?

mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How Do I Flip An NSScrollView? (From: Dan Saul <email@hidden>)
 >Re: How Do I Flip An NSScrollView? (From: David Jeffery <email@hidden>)
 >Undo logic location? (From: Tom Davies <email@hidden>)
 >Re: Undo logic location? (From: Jim Correia <email@hidden>)
 >Re: Undo logic location? (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: Undo logic location?
  • Next by Date: Re: NSTableView custom cell problem
  • Previous by thread: Re: Undo logic location?
  • Next by thread: Re: Undo logic location?
  • Index(es):
    • Date
    • Thread