• 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: Fri, 9 Sep 2005 19:40:21 +0200

On 09.09.2005, at 15:13, Kaspar Fischer wrote:
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

Just as a remark: Checking the "Continuously Updates Value" option in Interface Builder does not solve the problem because the undo machinery then records every single key-stroke, which I do not want... _______________________________________________ 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>)

  • Prev by Date: Re: [ANN] HOM paper available
  • Next by Date: Re: Newbie Q - Variables not being retained in class
  • Previous by thread: Proper way of ending text field editing on Quit
  • Next by thread: Re: Proper way of ending text field editing on Quit
  • Index(es):
    • Date
    • Thread