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

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


  • Follow-Ups:
    • Re: Proper way of ending text field editing on Quit
      • From: mmalcolm crawford <email@hidden>
    • Re: Proper way of ending text field editing on Quit
      • From: Kaspar Fischer <email@hidden>
  • Prev by Date: Re: Checking if framework exists
  • Next by Date: Re: RTF font parsing?
  • Previous by thread: Re: How to add toolbar into Mail.App
  • Next by thread: Re: Proper way of ending text field editing on Quit
  • Index(es):
    • Date
    • Thread