Re: Forcing NSController to commit edits
Re: Forcing NSController to commit edits
- Subject: Re: Forcing NSController to commit edits
- From: Ethan John <email@hidden>
- Date: Wed, 10 Mar 2004 13:21:16 -0800
You should be able to assign a delegate to the NSTextField and then
implement - textDidChange:
On Mar 10, 2004, at 12:05 PM, Ali wrote:
Hey guys,
I've got a problem where if an edit is in progress(i.e. the cursor is
in a textView or textField) and i close the window the edit is not
propagated, it is ignored(until the user pressed enter or tabs out).
So i'd like to be able to force the controller to take all pending
edits. For example, hitting a Done button on a sheet when the user has
just entered info into a text field but hasn't hit enter or tab yet,
the new data would be lost. Anyone have any ideas? Thanks,
Ali
Ali Lalani
e-mail: email@hidden
--
_______________________________________________
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.
ethan john
Apple Campus Representative
University of Washington
http://students.washington.edu/thaen/
206.841.4157
"Dude... I'm a car _ninja_."
_______________________________________________
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.