On 12/18/19 9:55 AM, Carl Hoefs via Cocoa-dev wrote:
However, I cannot get this notification to fire on system time changes. My other notifications (such as sleep wake, etc) do fire. -Carl [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver: self selector: @selector(systemTimeChanged:) name: NSSystemClockDidChangeNotification object: NULL]; -(void) systemTimeChanged: (NSNotification *) notification { NSLog(@"-systemTimeChanged: %@", [notification name]); }
I'm not sure what that workspace notification center is for. Maybe try [NSNotificationCenter defaultCenter].
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com