Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for getting (multiple) FileURLs #10

Merged
merged 2 commits into from
Jan 29, 2021
Merged

Add support for getting (multiple) FileURLs #10

merged 2 commits into from
Jan 29, 2021

Conversation

tobywf
Copy link
Owner

@tobywf tobywf commented Jan 29, 2021

This should fix issue #9 . I decided to go with a different interface, since it's possible to select multiple files. Reading public.file-url as a string does work, but I'm not sure if this is great. Who can say with Apple's documentation? There are multiple ways of getting the information

What leads me to believe stringForType isn't great is that setting file URLs via setString:forType doesn't work great. It makes my Finder spin for quite a while. Instead of exposing FileURL for get_contents and maybe having a special case in set_contents, I think this approach is quite nice.

@tobywf tobywf merged commit 120ddad into master Jan 29, 2021
@tobywf tobywf deleted the file-url branch January 29, 2021 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant