>
> Looking at my code to handle the OK and Cancel actions for the config sheet, 
> I still have these calls from way back:
>
> [defaults synchronize]; // It says this isn't needed, but it sure seems to be 
> for a screensaver pref,

This is what I do once the user clicks OK:

[defaults_ setObject: monitor_user_prefs forKey: displayName_];
[defaults_ synchronize];

But, the 'synchronize' does not help, it seems.

> I'd say try using that and see if it helps. But, exactly why and when are you 
> writing prefs during the run of your screensaver instances?

After the user clicks OK, I do some image "harvesting", which usually takes a 
few seconds, then I execute the two lines from above.

> Or are you only writing them during in the config sheet?

Yes, sometimes, if the user makes very small config changes, then I write the 
new prefs directly after the OK button.


Best,
Gab.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

Reply via email to