• 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: Ephemeral Changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Ephemeral Changes (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Ephemeral Changes (From: Graham Cox <email@hidden>)
 >Re: Ephemeral Changes (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Ephemeral Changes (From: "Sherm Pendley" <email@hidden>)
 >Re: Ephemeral Changes (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Ephemeral Changes (From: Jens Miltner <email@hidden>)

  • Prev by Date: Re: NSMapTable with pointer keys ?
  • Next by Date: Re: Ephemeral Changes
  • Previous by thread: Re: Ephemeral Changes
  • Next by thread: NSArrayController, managedObjects and KVO
  • Index(es):
    • Date
    • Thread