• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using NSNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSNotification


  • Subject: Re: Using NSNotification
  • From: James Spencer <email@hidden>
  • Date: Wed, 22 Oct 2003 21:44:20 -0500

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.

  • Follow-Ups:
    • Re: Using NSNotification
      • From: David Leimbach <email@hidden>
References: 
 >Using NSNotification (From: David Leimbach <email@hidden>)

  • Prev by Date: Re: fixPrecomps problems (was: Updating to GCC 3)
  • Next by Date: Re: Cocoa IRC channel?
  • Previous by thread: Using NSNotification
  • Next by thread: Re: Using NSNotification
  • Index(es):
    • Date
    • Thread