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

Re: NSTextField action


  • Subject: Re: NSTextField action
  • From: Marc Laffitte <email@hidden>
  • Date: Mon, 8 Oct 2001 17:28:32 +0200

Hi!
You could implement :

- (void)windowWillClose:(NSNotification *)notification
{
// and call your NSTextField action directly:
[self myNSTextFieldAction:self];
}

in your Preferences window controller.

Marc


> 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


References: 
 >NSTextField action (From: Simon Wright <email@hidden>)

  • Prev by Date: Re: NSString to *NSGlyph conversion...
  • Next by Date: Re: Build error: OmniFoundation: _OBASSERT
  • Previous by thread: NSTextField action
  • Next by thread: RE: NSTextField action
  • Index(es):
    • Date
    • Thread