• 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: How to make key shortcuts and mouse click trigger controlTextDidEndEditing:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing:


  • Subject: Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing:
  • From: RenĂ© Puls <email@hidden>
  • Date: Sun, 6 Mar 2005 11:43:59 +0100

Hi,

Am 06.03.2005 um 10:26 schrieb Darkshadow:


On Mar 05, 2005, at 6:33 PM, James Housley wrote:

On Mar 5, 2005, at 4:50 PM, Erik M. Buck wrote:

Thanks, the [window makeFirstResponder:nil] is the most elegant solution to tiggering end of editing, but it doesn't solve the second half of my problem. That was/is after the save the document is still marked as being modified even though I call [self updateChangeCount:NSChangeCleared] at the bottom of the save routine.

Would the be solved by going to be based on NSObject and handling the undo/edited myself.

Jim


Try [[self undoManager] removeAllActions]; instead.

I have stumbled over the same problem recently. Is there another way to solve this? Removing all actions from the undo manager means that the user cannot undo changes anymore after they have saved. What if I delete all text in my document, and then press Cmd-S by accident? Now my document is saved empty, and I can't even undo it -- maximum damage.


Kind regards,
René Puls

_______________________________________________
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: 
 >Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing: (From: "Erik M. Buck" <email@hidden>)
 >Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing: (From: James Housley <email@hidden>)
 >Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing: (From: Darkshadow <email@hidden>)

  • Prev by Date: Re: Adding a category to a protocol
  • Next by Date: Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing: - [SOLVED]
  • Previous by thread: Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing:
  • Next by thread: Stranded in a NSTextField...
  • Index(es):
    • Date
    • Thread