Re: Proper way of ending text field editing on Quit
Re: Proper way of ending text field editing on Quit
- Subject: Re: Proper way of ending text field editing on Quit
- From: Kaspar Fischer <email@hidden>
- Date: Mon, 19 Sep 2005 16:31:54 +0200
On 09.09.2005, at 22:41, mmalcolm crawford wrote:
On Sep 9, 2005, at 6:13 AM, Kaspar Fischer wrote:
Do I have to do this manually (which I find hard to
believe!)? And if so, where? Do I have to go through
all windows of the document and call
[window makeFirstResonder:nil]
on it? Or is there a more elegant way?
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Protocols/NSEditor.html>
Sorry, but I do not really understand this.
You suggest that I myself call commitEditing
whenever the user saves the document, whenever
the user switches a tab that contains a text
field that is being edited, whenever ...?
Wouldn't it be simpler if Cocoa did this for me?
The example with the tab that contains a text
field seems strikingly dangerous to me! If I type
text and change the tab then this change is *NOT*
committed (even though an innocent user might and
will think so). What should I do about this? Do
I really have to manually fix this for every
possibe case?
Or am I getting something wrong?
Kaspar
_______________________________________________
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