Proper way of ending text field editing on Quit
Proper way of ending text field editing on Quit
- Subject: Proper way of ending text field editing on Quit
- From: Kaspar Fischer <email@hidden>
- Date: Fri, 9 Sep 2005 15:13:22 +0200
Hi all,
My Core-Data application has a NSTextView field (with
appropriate bindings) and when I change text in it and
choose Quit, the application quits without asking
whether or not to save the changes.
Apparently, the problem is that when I choosse Quit,
the text field is not called to resign its focus.
Why not?
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?
Thanks,
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