Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNotificationCenter not working



Hi,

I have two apps running, one is my StartupDaemon and the other is a
System Preference plug-in I made,
When I click on this button I want it to send a notification, that the
Daemon can pick up on,

except it is not working right.


Sender:

[[NSNotificationCenter defaultCenter]

postNotificationName:@"com.mf.inverton" object:nil];


Receiver:

[[NSNotificationCenter defaultCenter] addObserver:callbacks

selector:@selector(invertOn)

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

The observer is a custom Obj-C class I made, and is working. But not
the notification receiving part of it.


Anything seem wrong with this?

Thanks,
Matt
_______________________________________________
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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.