On Mon, Jan 25, 2010 at 11:16 AM, Ronald Hofmann <pro...@jumbosoft.de> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com