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 21:04:38 -0000
- Encoding: 8bit
> Silly question... Is the thread where you've called
> SCPreferencesScheduleWithRunLoop is, in fact, running a runloop
> (CFRunLoopRun, NSApplicationMain, [[NSRunLoop currentRunLoop]
> run], ...)?
Yup. The wrapper is a Cocoa application. I've tried installing the callback from the application controller's awakeWithNib as soon as it starts up and from inside the worker thread it spawns when the user clicks the "Install" button. There is no change in behavior, however the child thread does not have its own run loop if that's what you mean.
> Lastly, does your tool which calls SCPreferencesCommitChanges (or
> SCPreferencesLock if you call it) check for errors? Does your tool
> NSLog a message when changes have been made?
It doesn't NSLog since that doesn't show up in the debugger console when it's run from AEWP(), it writes to stderr via CFShow, and yes it prints the results from SCError after every SCPreferences related call it makes. No errors are ever encountered, and System Preferences seems to pick up the notification just fine.
_______________________________________________
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