• 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: NSNotificationCenter not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationCenter not working


  • Subject: Re: NSNotificationCenter not working
  • From: m <email@hidden>
  • Date: Wed, 31 Mar 2004 19:40:57 -0800

On Mar 31, 2004, at 7:27 PM, Matt Jaffa wrote:

hmmm even doing NSDistributedNotificationCenter is not working,

here is what i am doing: I actually tried 2 ways and both didn't work

[snip]

Receiver:
[[NSDistributedNotificationCenter defaultCenter] addObserver:callbacks

selector:@selector(invertOn)

name:@"com.mf.inverton" object:@"com.mf.inverton"];

Try adding a colon to your selector i.e. instead of @selector(invertOn), use @selector(invertOn:)

Make sure also that invertOn: has the proper signature, namely:

-(void) invertOn:(NSNotification *)myNotification;

Regards,

_murat
_______________________________________________
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: NSNotificationCenter not working
      • From: Matt Jaffa <email@hidden>
References: 
 >NSNotificationCenter not working (From: Matt Jaffa <email@hidden>)
 >Re: NSNotificationCenter not working (From: m <email@hidden>)
 >Re: NSNotificationCenter not working (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: NSNotificationCenter not working
  • Next by Date: Re: Getting the Value of an NSSecureTextField
  • Previous by thread: Re: NSNotificationCenter not working
  • Next by thread: Re: NSNotificationCenter not working
  • Index(es):
    • Date
    • Thread