Hi,
I am using NSNotificationCenter to capture the date change event in the following way:
- (void) RegisterForOSNotification
{
NSNotificationCenter * nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self
selector:@selector(OSNotificationCallback:)
name:NSSystemClockDidChangeNotification
object:nil];
}
And this is the callback function:
- (void) OSNotificationCallback: (NSNotification *) pNotification
{
// Time was changed. Log a value here.
}
How can I pass an int value to the callback function from the RegisterForOSNotification function so that I can log the same or use it further for some processing? Is this possible?