Posts

Post marked as solved
3 Replies
1k Views
I have a fully working FileProvider on iOS11 and I can serve up files and save them back with one exception. When I open my FileProvider in the Files.app I cannot paste or drag items into it. I get a little "not allowed" icon. If I try to Paste, the only menu option is "Info".Also, when I save a document from an application (e.g. Word), the Move button does not appear.I have implemented allowsAll on all my FileProviderItem objects:var capabilities: NSFileProviderItemCapabilities { return .allowsAll }and my FileProviderExtension implements importDocument, but it is NEVER called: override func importDocument(at fileURL: URL, toParentItemIdentifier parentItemIdentifier: NSFileProviderItemIdentifier, completionHandler: @escaping (NSFileProviderItem?, Error?) -> Void) { print("###\(#function): URL = \(fileURL), parentItemIdentifier = \(parentItemIdentifier)") completionHandler(nil, nil) }I also notice that the create folder button is disabled.What are the minimal requirements to allow new files?
Posted
by sparky.
Last updated
.
Post marked as solved
1 Replies
611 Views
I have a storyboard segue that I'm using to show a ViewController as a Form Sheet. I just watched the "Customize and resize sheets in UIKit" session and would like to know if I can set the form detent to medium in the storyboard in interface builder, or is it only from code as done in the video. Also, does the same apply to .prefersEdgeAttachedInCompactHeight ? Thanks
Posted
by sparky.
Last updated
.
Post not yet marked as solved
0 Replies
287 Views
I have several iOS apps that interact with documents or files in other applications. In particular, one app uses an NSFileProviderExtension to enable the user to get files in and out of the app. Other apps use Open In.. How does this work with Catalyst apps? What are the best practices?
Posted
by sparky.
Last updated
.
Post not yet marked as solved
1 Replies
1.5k Views
I have a project that compiles in Xcode 9.0 but not Xcode 9.1 b2Internal error. Please file a bug at bugreport.apple.com and attach "/var/folders/f3/wxgg140140ldj49twpgg1hl80000gp/T/IB-agent-diagnostics_2017-10-09_12-57-50_732000".I filed the report https://bugreport.apple.com/web/?problemID=34892740Looking in the log.txt file in the folder, I see:Exception name: NSInvalidArgumentException Exception reason: System-provided UIImage instances cannot be encoded in NIBs - raised for instance '<UIImage: 0x7fc6679e8e80>, {18, 20}'Note: I've cleaned the project and derived data folder, but the issue persists in Xcode 9.1 b2.How can I trace the UIImage instance here back to the issue in my storyboard to see which image is causing the problem?
Posted
by sparky.
Last updated
.
Post not yet marked as solved
0 Replies
684 Views
I've been trying to figure out how to make my iOS app accept any file type dragged and dropped onto it.I have seen many examples showing how to do this with text and images, or custom objects, but not with generic files. I'm assuming I need to use NSItemProviderReading or NSItemProviderWriting but it seems that there must be something for handing ANY file type?If anyone has an example of receiving a dropped file, I'd love to see it!Thanks
Posted
by sparky.
Last updated
.