Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the use of iCloud Display Sets?

When adding iCloud support to iOS app one can configure iCloud Display Set and link it with an app by specifying NSUbiquitousDisplaySet. But iCloud works even without it, so my question is: what's the purpose of iCloud Display Sets at all?

Couldn't find any clear answer anywhere in the docs. And what's more, based on the Apple docs it seems as if specifying Display Set for your app was mandatory if you use iCloud. That did confuse me a bit.

It is so that one might want to share the same Display Set for multiple applications or for iOS and Mac app versions?

like image 897
Maciej at PixelElephant Avatar asked Feb 28 '12 03:02

Maciej at PixelElephant


1 Answers

That's right, it's for allowing multiple apps to access the same mobile data store.

From the Information Property List Key Reference:

NSUbiquitousDisplaySet (String - iOS, Mac OS X) contains the identifier string that you configured in iTunesConnect for managing your application’s storage. The assigned display set determines from which mobile data folder (in the user’s mobile account) the application retrieves its data files.

If you create multiple applications, you can use the same display set for your applications or assign different display sets to each. For example, if you create a lite version of your application, in addition to a full-featured version, you might use the same display set for both versions because they create and use the same basic data files. Each application should recognize the file types stored in its mobile data folder and be able to open them.

like image 170
yuji Avatar answered Sep 19 '22 18:09

yuji