newbie notification question.
newbie notification question.
- Subject: newbie notification question.
- From: Greg Jackson <email@hidden>
- Date: Thu, 28 Mar 2002 10:59:41 -0600
I spent a couple of hours trying to setup an object class to catch a
notifcation from an NSTextField.
In the controller class I have the following code:
- (void) awakeFromNib
{
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(controlTextDidChange:)
name:@"NSControlTextDidChange" object:nil];
}
My controlTextDidChange function is never called. I assume that I
have not correctly added my object class.
I tried changing the name to various messages that I saw in the documentation.
Please point me in the right direction.
Part of my problem is that I am coming to cocoa from powerplant. In
powerplant when I had a problem like this one, I could tell by
looking in the debugger where I made my mistake, what should I have
been looking for in the debugger to give me a clue as to what I did
wrong above?
Thanks!
Greg
_______________________________________________
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.