Re: NSTextField text input
Re: NSTextField text input
- Subject: Re: NSTextField text input
- From: Douglas Davidson <email@hidden>
- Date: Wed, 9 Nov 2005 13:25:15 -0800
On Nov 9, 2005, at 11:52 AM, j o a r wrote:
Check NSControl, and "controlTextDidChange:".
In addition, note that the field editor actually managing the editing
for a given control is available via the control's -currentEditor
method, and it is possible to query the field editor (an NSTextView)
for its contents. However, you must bear in mind that the contents
of the field editor may be in an invalid intermediate state, for
example with uncommitted partial entries from a complex input method
for e.g. Japanese, so these contents should not normally be used
directly (although it might be reasonable to check whether they are
empty or not). The value of the control using e.g. stringValue does
not have these issues, but calling stringValue may have side effects
such as forcing partial inputs to be discarded, so in general one
should avoid calling it while the control is editing.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden