Re: NSTextField trigger method on key-press?
Re: NSTextField trigger method on key-press?
- Subject: Re: NSTextField trigger method on key-press?
- From: Ryan Dingman <email@hidden>
- Date: Wed, 28 Aug 2002 18:21:34 -0700
You can be notified of every text change in a text field by becoming
its delegate and implementing:
- (void)controlTextDidChange:(NSNotification *)aNotification;
Hope this helps.
ryan
On Wednesday, August 28, 2002, at 06:08 PM, Matt Gemmell wrote:
Hi all,
I have an NSTextField, which triggers a certain method when the user
presses return/enter. However, I'd like to trigger the method whenever
they press any key (when they edit the contents of the field).
Is there a nicer way to do this than using an NSTimer to poll the
contents of the field periodically?
Best,
-Matt
--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
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.
_______________________________________________
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.