• 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
problem with Textfields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with Textfields


  • Subject: problem with Textfields
  • From: Patrice Goetghebeur <email@hidden>
  • Date: Thu, 5 Dec 2002 18:32:59 +0100

Hi,

I have a window with many NSTextField in a NSTabView. I created a controller for each view. There is also a button at the bottom of the window linked to the window controller.
I'd like to get all the values of the textfields in a shared object when i press the button.

I created a method for each textfield that sends its content to the shared object, then linked in IB each textfield to the respective method.

My problem is: textfields send messages at end editing, that is when we press enter or click elsewhere in the window, so my shared object is not updated with the last textfield edited if i directly click on the button.

Is there a way to order an update when clicking the button, or a better way to do that ?

Thanks for your help.


Patrice.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: problem with Textfields
      • From: Mike Ferris <email@hidden>
  • Prev by Date: Re: help with copy: method
  • Next by Date: Re: Subclassing NSWindowController
  • Previous by thread: Re: stringByTrimmingCharactersInSet trimming too much
  • Next by thread: Re: problem with Textfields
  • Index(es):
    • Date
    • Thread