Re: textDidEndEditing
Re: textDidEndEditing
- Subject: Re: textDidEndEditing
- From: Douglas Davidson <email@hidden>
- Date: Thu, 11 Nov 2004 16:54:41 -0800
On Nov 11, 2004, at 4:48 PM, Andrew White wrote:
On Nov 11, 2004, at 4:03 PM, Andrew White wrote:
> When using a delegate of a text field, what is the difference
between
> the 'textDidEndEditing' and 'controlTextDidEndEditing' methods?
When
> should I use one rather than the other?
The difference is that the text field itself receives the former, and
sends the latter to its delegate, so it is the latter you should
implement. textDidEndEditing is for text view delegates.
"textDidEndEditing is for text view delegates"
Yeah, I've seen that line before in Apple documentation. The problem
is that my interpretation of what you have just said is:
"the text field sends controlDidTextEndEditing to its delegate.
textDidEndEditing is for the delegate"
to which I respond "huh?" It still looks like you are saying that
both are sent to the delegate.
There is a difference between a text field and a text view. Look up
the documentation on NSTextField and NSTextView.
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