• 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
NSTextField action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextField action


  • Subject: NSTextField action
  • From: Simon Wright <email@hidden>
  • Date: Mon, 8 Oct 2001 11:02:41 -0400

I'm implementing a Preferences function and have run into a small problem:

My Preferences window has a single checkbox and a single NSTextField object. Each has an action that calls a method in my class to handle the change of the preference: checkbox goes on or off, textfield gets new value.

My problem is that my textfield action method only gets called if the user tabs after entering a new value. If they enter a new value and close the Preferences window, my action method does not get called.

I think I need to establish a method that gets called when the user closes the window, but IB won't let me draw a connection from the window's close button to my handler.

Your help is appreciated.

TIA.

Simon


  • Follow-Ups:
    • Re: NSTextField action
      • From: Marc Laffitte <email@hidden>
  • Prev by Date: Re: How to modify dialup number, login and password
  • Next by Date: Re: NSMatrix Opacity ?
  • Previous by thread: Loading URLs through HTTP proxy
  • Next by thread: Re: NSTextField action
  • Index(es):
    • Date
    • Thread