Post

Replies

Boosts

Views

Activity

How to get sharing source similar to Reminders share extension?
In Mail or Safari, user can select text to bring up the edit menu.. When sharing the text selection to Reminders using Share Extension, Reminders App's share extension is able to identify the "source" and show the app icon linking back to the original web page or email. (Please check attached screenshots) In my own Share Extension, how do I get, say, an URL object linking to the sharing source? I've looked at NSExtentionContext, NSExtensionItem and NSItemProvider documentation. It doesn't look like there's a public interface to retrieve that info. Do u guys have any suggestion? Thanks Bill
0
0
458
May ’22
How to specify with "configuration" to save to?
I am following the tutorial - Setting Up Core Data with CloudKit - https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/setting_up_core_data_with_cloudkit. It mentions about "Manage Multiple Stores" - https://developer.apple.com/documentation/coredata/mirroring_a_core_data_store_with_cloudkit/setting_up_core_data_with_cloudkit#3193724 which suggests us to split our data model into multiple configurations - one for local, one for CloudKit sync. Question... if my configuration "Local" and "Cloud" both contain the same entity "Quake", how can I tell Core Data which configuration I want my "Quake" managed object to save to? For now, my solution is... I have a "LocalQuake" and a "CloudQuake" entity both sharing the same parent. Each one belongs to a configuration ("Local" and "Cloud" respectively). Is that what you are doing in your project as well? Thanks B
0
0
421
Mar ’21