Re: NSTextField Delegate
Re: NSTextField Delegate
- Subject: Re: NSTextField Delegate
- From: Seth Willits <email@hidden>
- Date: Fri, 26 Mar 2004 17:40:48 -0800
On Mar 26, 2004, at 5:25 PM, James Spencer wrote:
- (void)textDidChange:(NSNotification *)aNotification
You said these are text fields and your subject line says
NSTextFields, right? These are controls and the textDidChange:
delegate method doesn't get called; rather controls have the
controlTextDidChange: method called.
Well that's interesting.
I didn't read the fine print. The reference says:
textDidChange:
- (void)textDidChange:(NSNotification *)aNotification
Forwards this message to the receivers cell if it responds and posts
an NSControlTextDidChangeNotification to the default notification
center. ####This method causes the receivers delegate to receive a
controlTextDidChange: message.#### See the NSControl class
specification for more information on the text delegate method.
Thanks for your help,
Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software -
http://www.freaksw.com
REALbasic Guru at ResExcellence -
http://www.resexcellence.com/realbasic
Webmaster for REALbasic Game Central -
http://www.freaksw.com/rbgames
"One day you'll be wandering through the darkness looking for guidance,
inspiration, and your purpose in life, and the next you'll turn around
and realize they've been standing right next to you the whole time."
------------------------------------------------------------------------
---
_______________________________________________
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.