problem with Textfields
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.