• 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: Proper way of ending text field editing on Quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Proper way of ending text field editing on Quit (From: Kaspar Fischer <email@hidden>)
 >Re: Proper way of ending text field editing on Quit (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: willChangeValueForKey, Ivars and Core Data
  • Next by Date: Re: File name encoding problem
  • Previous by thread: Re: Proper way of ending text field editing on Quit
  • Next by thread: NSBitmapImageRep and 32bit floating-point samples
  • Index(es):
    • Date
    • Thread