Hi All,
I would like to add notification center from a cpp class, is it possible???? if Yes how to do it. Manager.h
class Manager
{
Manager();
};
Manger.mm file
Manager:Manager()
{
[[NSNotificationCenter dafaultCenter] addObserver:self selector:@selector(workermethod) name:@" Name" object:(id)nil];
}
My compiler gives an error saying self is not declared.......ya i knw its an obvious error.since im not deriving from NSObject.... Please let me knw if its possible to add notification center to cpp class in cocoa??