• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: dynamic typing in a text field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >dynamic typing in a text field (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: dynamic typing in a text field
  • Next by Date: Re: How to hide dock item and application menu?
  • Previous by thread: dynamic typing in a text field
  • Next by thread: CALayer maybe silly question
  • Index(es):
    • Date
    • Thread