Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > 10.5 Gotcha: Pr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 3697 of 3799
Post > Topic >>

10.5 Gotcha: Preferences Sync

by David Phillip Oster <oster@[EMAIL PROTECTED] > Apr 6, 2008 at 08:40 PM

There is a new feature in OS X 10,5 (Leopard) that affects your 
application: 

Preferences Sync. 

Preferences Sync is a new feature of Sync Services manager and .Mac, 
that lets the user sync the contents the directory of 
${HOME}/Library/Preferences between multiple Macs.

You probably have a checklist of tasks you must attend to, to get your 
application program ready to ****p.

Please add this item:

Look at the preferences you write to NSUserDefaults. Consider what 
happens when a user uses .Mac to sync preferences to another machine. 
Should any preferences not be synced?

For example, if your program checks for updates, you don't want the time 
of last check to be synced, because an old version might never check.

Here's how to control which preferences will be exempt from Preferences 
Sync:

In your app's Info.plist add:

....
<key>com.apple.PreferenceSync.ExcludeSyncKeys</key>
<array>
<string>SULastCheckTime</string>
.... other keys here ...
</array>

....


See: 

http://developer.apple.com/documentation/Cocoa/Conceptual/SyncServices/Ar
ticles/SyncingPreferences.html

for more information.

-- 
David Phillip Oster
 




 3 Posts in Topic:
10.5 Gotcha: Preferences Sync
David Phillip Oster <o  2008-04-06 20:40:18 
Re: 10.5 Gotcha: Preferences Sync
Sean McBride <cwatson@  2008-04-17 23:03:16 
OT: terminate called after throwing an instance of 'gfl::Excepti
Lab5 <lab5@[EMAIL PROT  2008-04-26 09:57:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 5:49:25 CDT 2008.