Re: NSTextField delegate how to?
Re: NSTextField delegate how to?
- Subject: Re: NSTextField delegate how to?
- From: Ricky Sharp <email@hidden>
- Date: Tue, 27 Sep 2005 19:11:15 -0500
On Sep 27, 2005, at 7:04 PM, Ricky Sharp wrote:
On Sep 22, 2005, at 10:01 PM, .::welemski::. wrote:
I can't get my NSTextField's delegate to work. :(
I read the documentation and I followed some examples on the net,
still I am unable to
make it work.
Can anyone give me an example on how to make
"-(void)textDidChange:(NSNotification*)aNotification" delegate to
work?
Just a simple example will do, like printing on the NSLog( @ "Text
did change").
I just added some code to do this and am also puzzled to why it's
not working.
Here's my method I added to a controller:
- (void)nameDidChange_II:(NSNotification*)aNotification
{
NSBeep();
}
Bad, bad, bad! In re-reading the docs, the method you need to
implement is:
-(void)controlTextDidChange:(NSNotification*)aNotification
Since I was using nameDidChange_II: and the OP was using
textDidChange:, that's why nothing was happening.
Sorry for the noise.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden