Using NSNotification
Using NSNotification
- Subject: Using NSNotification
- From: David Leimbach <email@hidden>
- Date: Wed, 22 Oct 2003 21:14:08 -0500
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
I have tried making textField an "id" and a "NSTextField *"
neither work.
Any ideas or help here. I am completely lost here.
Dave
_______________________________________________
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.