Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6550455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:13:04+00:00 2026-05-25T12:13:04+00:00

I need to get notified when the changes made in system preference panel.From the

  • 0

I need to get notified when the changes made in system preference panel.From the google document I found kEventSystemTimeDateChanged and it worked in Leopard.But While running the same code snippet on snow leopard,
event is not getting fired on clock changes.I need clarification does Snow Leopard and Lion supports kEventSystemTimeDateChanged.

My Code snippet is as given below.

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
        [self SystemTimeChangeHandler]; 
}



OSStatus DateChangeEventHandler(EventHandlerCallRef nextHandler, EventRef theEvent, void *userData) 
{
NSLog(@"Event Fired!\n");    
return 0;
}


- (void)SystemTimeChangeHandler
{

NSLog(@"SystemTimeChangeHandler");
EventTypeSpec eventType;

eventType.eventClass = kEventClassSystem;

eventType.eventKind = kEventSystemTimeDateChanged;


EventHandlerUPP eventHandlerUPP =
NewEventHandlerUPP(DateChangeEventHandler);

EventHandlerRef eventHandlerRef = NULL;

(void)InstallApplicationEventHandler(
                                     eventHandlerUPP,
                                     1,
                                     &eventType,
                                     self,
                                     &eventHandlerRef);
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:13:04+00:00Added an answer on May 25, 2026 at 12:13 pm

    As a workaround, in Mac OS X 10.6 or later, you can register for the NSSystemClockDidChangeNotification. The documentation doesn’t make clear whether that’s on the default local notification center or the default distributed notification center.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to watch a system setting and get notified when its value changes.
Is there a way to get notified when CompositeCollection's current location changes? I need
Short version: For a cache class I need to get notified if an object
I need to get notified whenever a user clicks a link on a page
Some explanation: there are several machines(hosts) that need to be notified about any changes
from a ff 3.6 plugin I want to get notified every time a new
I'm drawing an arrow as a <s:Path> and I need to get notified when
Just need get some vals located in application.ini(main ini) in the Controller plugin I
I need get all items these have no categories int? categoryId = null; var
I'm working with C#.net developing applications for windows mobile 6, and i need get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.