Re: SCPreferencesSynchronize not doing its job
Re: SCPreferencesSynchronize not doing its job
- Subject: Re: SCPreferencesSynchronize not doing its job
- From: email@hidden
- Date: 14 Dec 2006 20:43:23 -0000
- Encoding: 8bit
> Does your SCPreferences callback function check for a "commit"
> notification? For example :
>
> static void
> preferencesCallBack(SCPreferencesRef prefs,
> SCPreferencesNotification notificationType,
> void *info)
> {
> if ((notificationType & kSCPreferencesNotificationCommit) ==
> kSCPreferencesNotificationCommit) {
> /* if prefs changed */
> ...
> }
> ...
> }
Right now all my callback does is call NSLog. There's a breakpoint on it as well and it never gets hit.
> Also, do you call SCPreferencesSetCallback and
> SCPreferencesScheduleWithRunLoop *before* you launch your helper tool?
Yup. I copied and pasted a presumably working example from some Darwin code. Doesn't matter if I call it inside or outside the spawned thread, it always returns true then does nothing. Won't even pick up changes made by other apps.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden