Post

Replies

Boosts

Views

Activity

Reply to MacOS FileProvider: Creating persistent identifiers for remote files to use with NSFileProviderReplicatedExtension
Given the service I'm accessing only provides path, file/folder name, and content (for files), I almost wonder if it'll hurt to just keep changing the identifiers and avoid maintaining a mapping. I can return a new item with a new identifier from calls to modifyItem(...), and then return NSFileProviderError(.noSuchItem) for future access to the old identifier. I just don't know if that'll mess things up in ways I don't yet understand.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’22
Reply to MacOS FileProvider: Creating persistent identifiers for remote files to use with NSFileProviderReplicatedExtension
Given the service I'm accessing only provides path, file/folder name, and content (for files), I almost wonder if it'll hurt to just keep changing the identifiers and avoid maintaining a mapping. I can return a new item with a new identifier from calls to modifyItem(...), and then return NSFileProviderError(.noSuchItem) for future access to the old identifier. I just don't know if that'll mess things up in ways I don't yet understand.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Swift Concurrency: How to serialize async methods using structured concurrency
I've just read through https://github.com/apple/swift-evolution/blob/main/proposals/0306-actors.md, and it seems that this is intentional to allow for reentrancy. This makes sense, but I guess another synchronization is then required to achieve the desired isolation. Is there a semaphore-like primitive for use with structured concurrency?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’22