Re: Using NSNotification
Re: Using NSNotification
- Subject: Re: Using NSNotification
- From: David Leimbach <email@hidden>
- Date: Wed, 22 Oct 2003 22:30:24 -0500
Yeah... someone pointed out my misspelling already... thanks :)
On Oct 22, 2003, at 9:44 PM, James Spencer wrote:
try "addObserver
On Wednesday, October 22, 2003, at 09:14 PM, David Leimbach wrote:
I have the Learning Cocoa book [from May of 2001] and it has an
example
showing how to use NSNotification.
I checked the errata and fixed a few of the problems but I still get
the following message:
MyController.m:12: cannot find method
`-addObsever:selector:name:object:'; return type `id' assumed
for the code
[[NSNotificationCenter defaultCenter] addObsever:self
selector:@selector(textDidChange:)
name:NSControlTextDidChangeNotification
object:textField];
It seems that NSNotifcationCenter should have a method:
addObserver:selector:name:object
it does. It just doesn't have one named "addObsever". Check your
spelling. :)
Spence
James P. Spencer
Rochester, MN
email@hidden
"Badges?? We don't need no stinkin badges!"
_______________________________________________
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.
_______________________________________________
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.