Re: How to make key shortcuts and mouse click trigger controlTextDidEndEditing:
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