Post

Replies

Boosts

Views

Activity

Cannot fetch item in NSFileProvider (macOS)
In fetchContents(..) method, I download file item from server by session.downloadTask. And i copy file from response url to temporary url (which is created from NSFileProviderManager.temporaryURL). After this, it's certain that file contents of temporary url is not 0byte (same length with downloaded file) And then i call completionHandler with this temporary url, file provider item. But i cannot open file in finder with error msg - cannot open because the file is empty. let task = downloadItem(named: filename) { url, error in       let dataURL = makeTemporaryURL()       do {         try FileManager.default.copyItem(at: url, to: dataURL)         completionHandler(dataURL, item, nil)       }       catch let error as NSError {         completionHandler(nil, nil, Error.fileDownloadFailed)       }     }     task.progress.cancellationHandler = { completionHandler(nil, nil, NSError(domain: NSCocoaErrorDomain, code: NSUserCancelledError)) }           return task.progress
0
0
685
Nov ’21
How can i localize key-value in info.plist?
I want to localize two value in info.plist. First one is [ NSFileProviderDecorations - Item0 - Label ], and second one is [ NSExtensionFileProviderActionName ]. I could localize first one using InfoPlist.strings. (and Label-NSStringFormat) But it does not work for second one. I tried InfoPlist.strings, Localizable.strings, ..., but i can't localize this key. What should i do?
2
0
1.9k
Jun ’22
Can i define new icon-decoration badge?
I'm working with NSFileProviderReplicatedExtension for macOS app. I want to apply custom badge on files instead of default badges (For example, com.apple.icon-decoration.heart, com.apple.icon-decoration.pinned, .. and so on). I tried to define new UTI in my Info.plist refering this post (-> https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html) But it doesn't work. Can i define custom badge? If yes, how can i work with this? Please reply.
1
1
1.2k
Jul ’22
Cannot install github app with xcode cloud
When i click "Grant Access.." button to grant access to my source code, Appstoreconnect page is opened and i choose "Github enterprise" button. And i move to github enterprise page ( "Create Github App" page ). And when i click "Create github for ~~" button, i move to appstoreconnect error page which tells me that "Github Enterprise installation was incomplete". I'm owner in my github enterprise organization. What can i do?
0
0
666
Feb ’23