Re: newbie notification question.
Re: newbie notification question.
- Subject: Re: newbie notification question.
- From: "Michael P. Rogers" <email@hidden>
- Date: Thu, 28 Mar 2002 20:07:31 -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];
}
Try doing this instead:
1) In your controller instance, define the controlTextdidChange method
2) Drag a connection from the NSTextField to your controller
instance, and making it a delegate for the NSTextField
That ought to work.
Michael
--
Dr. Michael P. Rogers
Office: 203G Shilling Hall
Phone: 217-424-6327 (W) 309-828-8655 (H) 309-825-6454 (C)
E-Mail: email@hidden
Web site:
http://math.millikin.edu/
Astronomy Site:
http://twincityamateurastronomers.org
_______________________________________________
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.