• 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: NSTextField delegate how to?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTextField delegate how to? (From: ".::welemski::." <email@hidden>)
 >Re: NSTextField delegate how to? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: NSTextField delegate how to?
  • Next by Date: Non-default origin scaling problem (NSAffineTransformation)
  • Previous by thread: Re: NSTextField delegate how to?
  • Next by thread: Timer firing not by set interval
  • Index(es):
    • Date
    • Thread