icloud

Accessing iCloud Drive files from app

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to have iCloud support in my app where I can store and get PDF files. My question is "How to access iCloud drive file without using UIDocumentPickerViewController ". Actually I want to have custom files list in my app. I tried this code - (void) getAllFilesIniCloud { queryData = [[NSMetadataQuery alloc] init]; [queryData setSearchScopes:[NSArray arrayWithObject:NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope]]; NSPredicate *pred = [NSPredicate predicateWithFormat: @"%K like '*.'", NSMetadataItemFSNameKey]; [queryData

macOS 此 iCloud 帐户已经存在。

匿名 (未验证) 提交于 2019-12-02 23:57:01
将 Apple ID 换了一个邮箱,然后在 macOS 重新登陆的时候出现登录不上异常,始终显示 若要将此 Apple ID 用作主要的 iCloud 帐户,请从“互联网帐户”中删除它,然后重新登录 但是在 互联网账号 的列表中,已经不存在任何iCloud 帐户,在此页面登录也显示 此 iCloud 帐户已经存在。 已经尝试过关机重启等操作,仍然无法解决 最后在一篇英文帖子里找到解决方案。 在终端输入命令: $ defaults delete MobileMeAccounts 再登录 iCloud 即可 参考链接: “ account is already signed in to iCloud” in Mojave―but it's not 来源:博客园 作者: 大落南园 链接:https://www.cnblogs.com/nnylee/p/11454750.html

Access to Safari bookmarks from another application

耗尽温柔 提交于 2019-12-02 23:23:42
I was wondering how we can access Safari bookmarks from another Cocoa application on Mac OS X, in a way that is safe and secure for the future. As you may know, two mechanisms were common to retreive Safari bookmarks: either read Safari's Bookmarks.plist file or use the SyncServices API. However, the first is forbidden by sandboxing (mandatory for a distribution through the App Store), and the second has been deprecated since Mac OS X 10.7 Lion. I believe that Apple deprecated SyncServices in favour of iCloud synching, but I can't find any iCloud API that allow access to the bookmarks (1). Any

Syncing a local sqlite file to iCloud

我的未来我决定 提交于 2019-12-02 22:35:33
I store some data in my iOS app directly in a local .sqlite file. I chose to do this instead of CoreData because the data will need to be compatible with non-Apple platforms. Now, I'm trying to come up with the best way to sync this file over iCloud. I know you can't sync it directly, for many reasons. I know CoreData is able to sync its DBs, but even ignoring that using CD would essentially lock this file into Apple platforms (I think? I've only looked into CD a bit), I need the iCloud syncing of this file to work across ALL of iCloud's supported platforms - which is supposed to include

iPhone (iOS) app using local sqlite and desire to sync between multiple devices

瘦欲@ 提交于 2019-12-02 22:19:34
I have an iPhone (iOS) app that keeps data in a local SQLite database on each device. The app is used to manage a virtual bank account for kids to track their allowance, spending, savings, etc. (KidsBank and KidsBank Free). I am getting a lot of requests from parents to provide a sync capability between parents and possibly even their children's iOS devices. I have considered several options, but all are tedious and non-trivial since this basically requires database replication or a new architecture. Any transaction on any device ideally should appear (sync) to all devices in the family (as

Mac添加中国法定节假日安排

匿名 (未验证) 提交于 2019-12-02 21:52:03
最近中秋、国庆临近,当大家开始抢票才反应过来,原来假日已然临近,打开mac日历,发现并没有标注节假日安排,发现了 这篇文章 ,写了这篇读后感。 上面的文章介绍使用了两种在苹果系列设备设置中国节假日的方式:一种是订阅式,一种是导入方式。在这里我推荐使用 订阅方式 ,一次订阅,终身使用(当然前提是不删除订阅并且提供方一直更新日历信息),还可以同步多个设备,尤其是对于使用苹果三件套的用户来说多设备之间无缝衔接同步,简直便利。 给大家推荐两个国内法定节假日和调休安排订阅地址,可以根据自己的喜好来选择 webcal : //p10-calendars.icloud.com/published/2/MTI3Njk0MTQxNzEyNzY5NFRvxM53AOH-Px17vHeUETlZdUggoyEt2KnFiIqHg40FkRXfcQJjYoa2dULRarI9z4UlbHxK-kLOohfiRVSSP7Q webcal : //p22-calendars.icloud.com/published/2/RL1JwQQtKFudYOiicAG_adz9DdrozFeZzv5Uyrs4s3gyWobdzL1NZFH-ZHAsTfuAevtnzdqVdYmcRO_Y_dWtxeIdmzUA1TNkAt5RuotJmsg 复制上方订阅地址 打开Mac OSX 自带日历应用 点击左上角文件--

Relational Integrity and Validation in Core Data iCloud Syncing

和自甴很熟 提交于 2019-12-02 21:21:44
Consider the following simple entity model: Entity A has a to-one relationship to Entity B called b . Entity B has an inverse to-one relationship called a . Neither relationship is optional. A B b < ----- > a Assume we have two devices (1) and (2) that begin fully synced. Each has one object of class A, and one object of class B, and they are associated with one another. On device 1, we have objects A1 and B1, and on device B we have the same logical objects A1 and B1. Now assume that simulateous changes are made on each device: On device 1, we delete B1, insert B2, and associate A1 with B2.

iCloud + Core Data today (10th july 2015)

久未见 提交于 2019-12-02 21:11:08
Some years ago Apple released the iCloud sync of Core Data apps. Then I released an app for iPad / iPhone / MAC with a shared model using the new Apple mechanism. Things have not gone as expected. The sync mechanism sometimes doesn't work. For example, the last months, in my case, rarely the sync ends well through my 3 devices. Uploading objects in general works fine. But the download process of new or deleted objects normaly crash. Apple released some time ago a way to force the devices to redownload ALL the objects of the model (NSPersistentStoreRebuildFromUbiquitousContentOption) that

Private data sharing using CloudKit

♀尐吖头ヾ 提交于 2019-12-02 20:44:20
Is there a straightforward way to share private data between two or more users using CloudKit? Public and private date are obvious, but there doesn't seem to be a way to allow a group of users to organize their own silo to share data amongst themselves without making it available to all the other users of the system and to the app developer. I have an academic collaboration app in mind but the simplest example would be private messaging between two users. I guess one could try to build a public key encryption system on top of CloudKit to achieve that, but that's not what I'm looking for and