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