Re: dynamic typing in a text field
Re: dynamic typing in a text field
- Subject: Re: dynamic typing in a text field
- From: Sherm Pendley <email@hidden>
- Date: Mon, 25 Jan 2010 13:36:32 -0500
On Mon, Jan 25, 2010 at 11:16 AM, Ronald Hofmann <email@hidden> wrote:
> I want a textfield in my project which triggers a method while I´m writing in it.
> I saw this option 'continous' in the interface builder which works fine with sliders.
> While I move the slider the method executes.
>
> How can I do the same thing with a textfield?
Assign a delegate to the text field, and implement the
-controlTextDidChange: method in the delegate's class.
> I can´t find it. Is there an example somewhere?
Don't forget to look in the superclass! NSTextField is a subclass of
NSControl, which is where the above delegate method is defined and
documented.
sherm--
--
Cocoa programming in Perl:
http://www.camelbones.org
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden