Skip to content

Comments

feat: add set files util for pasteboard binding#111

Open
ClSlaid wants to merge 5 commits intoryanmcgrath:trunkfrom
ClSlaid:feat/set-file-urls
Open

feat: add set files util for pasteboard binding#111
ClSlaid wants to merge 5 commits intoryanmcgrath:trunkfrom
ClSlaid:feat/set-file-urls

Conversation

@ClSlaid
Copy link

@ClSlaid ClSlaid commented Oct 22, 2023

Hello, I'd like to implement file pasting on OSX, but sadly I know nothing about Swift and Obj-C. Thankfully, I found your project, and I'd like to add a patch to satisfy my need.

This PR merely adds a set_files method to Pasteboard. And it's expected to convert paths you put in to NSURLs and write into the clipboard.

Note that this PR is currently UNTESTED.

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
@ClSlaid ClSlaid force-pushed the feat/set-file-urls branch from 5312567 to 9985ebd Compare October 22, 2023 17:15
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
@ClSlaid
Copy link
Author

ClSlaid commented Oct 25, 2023

I'd be grateful if you could have a look? @ryanmcgrath

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
should url encoded

Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
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