• 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: TextField textdidchange
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextField textdidchange


  • Subject: Re: TextField textdidchange
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Sat, 25 Oct 2003 18:27:50 +0100

On Saturday, October 25, 2003, at 05:35 pm, David Dauer wrote:

I have an NSTextField which takes its value from an NSStepper.
(takeStringValueFrom:)
Now i want to get notified when this happens.
Setting a delegate and using this:

- (void)controlTextDidChange:(NSNotification *)aNotification
{
if ([aNotification object] == myField)
{
NSLog(@"%@",[myField stringValue]);
}
}

Will only work when I type in the field manually.
Any suggestions?

Change the target and action to point at a new method on the object that needs notifying, then make that method send the original -takeStringValueFrom: message.

Kind regards,

Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: TextField textdidchange
      • From: David Dauer <email@hidden>
References: 
 >TextField textdidchange (From: David Dauer <email@hidden>)

  • Prev by Date: Re: XCode for Jaguar?
  • Next by Date: Re: TextField textdidchange
  • Previous by thread: TextField textdidchange
  • Next by thread: Re: TextField textdidchange
  • Index(es):
    • Date
    • Thread