Re: Ephemeral Changes
Re: Ephemeral Changes
- Subject: Re: Ephemeral Changes
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 27 Mar 2008 18:44:52 +0100
On 27 Mar 2008, at 09:50, Jens Miltner wrote:
Am 26.03.2008 um 11:26 schrieb Gerriet M. Denkmann:
I also can use Edit ► Undo Set (or Paste) Font but now the
document gets dirty. Very bad. Also: the complete text gets selected.
So what else do I have to implement? I tried setFont: and
setFont:range:, but these seem never to be called.
How does the NSUndoManager undo my font changes?
Hmmh - how about completely disabling the built-in undo support for
these functions (as was proposed before), and manually add undo
actions?
That way you'd have control over the undo action yourself and could
once again mark the document as unchanged after the undo....
</jum>
Yes. As I do not know how to recognize the actions when overriding
undo/redo in NSUndoManager this definitly is the best (or even the
only) way.
Thank you very much!
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden