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

Clipboard Support #1221

Merged
merged 6 commits into from Aug 3, 2017
Merged

Clipboard Support #1221

merged 6 commits into from Aug 3, 2017

Conversation

mantognini
Copy link
Member

@mantognini mantognini commented Apr 26, 2017

Based on @ricanteja work from #1204.

References:

Missing:

  • Android implementation (volunteer?)
  • iOS implementation (volunteer?)
  • testing, testing & more testing!

@mantognini
Copy link
Member Author

@sol-prog, @louis-langholtz, @spacechase0, @BlueCobold: do any of you want to provide the iOS implementation? It's probably very similar to the mac one, but I can't test. :-)

@eXpl0it3r
Copy link
Member

Would could just add a dummy implementation for Android and iOS for the time being.

@mantognini
Copy link
Member Author

Alright, so I've added an empty Android implementation and one for iOS (based on Apple's doc only, didn't compile the stuff...).

@BlueCobold
Copy link
Contributor

BlueCobold commented May 1, 2017

@mantognini To what version of iOS should this implementation be compatible to?

Edit: Now I'm confused, the implementation is already existing. Oh... I read your last comment now ;)

@mantognini
Copy link
Member Author

@BlueCobold I don't know actually. Didn't pay too much attention to that. If you feel it could be more backward compatible, send me a patch. ;-)

@eXpl0it3r eXpl0it3r added this to Review & Testing in SFML 2.5.0 May 6, 2017
@eXpl0it3r
Copy link
Member

Just gave this another spin on my Windows 10 machine and it works fine, with no, one or multiple windows.

@BlueCobold Were you able to test the iOS implementation?
@MarioLiebisch How does the Android implementation look like?

@MarioLiebisch
Copy link
Member

Still haven't figured out what the "correct" thread is or how to identify it. There's hardly any documentation to be found.

@eXpl0it3r
Copy link
Member

Any progress, @MarioLiebisch?

@MarioLiebisch
Copy link
Member

To be honest I'm so short from simply adding a Java function as a wrapper to be called…

@CelticMinstrel
Copy link

This seems like a great start, but why no image support?

@mantognini
Copy link
Member Author

The goal of this PR is to get something "quickly". During the discussion for this feature, we agreed to split the work in several stages to make observable progress. The next one would be indeed adding support for images, but also for other kind of data.

@CelticMinstrel
Copy link

I see. That sounds good, then.

@eXpl0it3r
Copy link
Member

@MarioLiebisch Can we somehow move forward on this?

@MarioLiebisch
Copy link
Member

No progress here, revert it to the "not implemented" state for now.

@eXpl0it3r
Copy link
Member

Removed the boilerplate code for Android and rebased onto master.

Android code can still be found on the feature/clipboard_android branch.

@eXpl0it3r eXpl0it3r self-assigned this Aug 1, 2017
@eXpl0it3r eXpl0it3r moved this from Review & Testing to Ready in SFML 2.5.0 Aug 1, 2017
@ricanteja
Copy link
Contributor

Woohoo! Contributed to my first major project 🥇 Thanks guys!

@eXpl0it3r eXpl0it3r merged commit cd27b7d into master Aug 3, 2017
@eXpl0it3r eXpl0it3r deleted the feature/clipboard branch August 3, 2017 14:30
@eXpl0it3r eXpl0it3r moved this from Ready to Merged / Superseded in SFML 2.5.0 Aug 3, 2017
@Foaly
Copy link
Contributor

Foaly commented Sep 6, 2017

Don't know if this is the right place for this, but I noticed a warning in the OSX clipboard implementation. In ClipboardImpl::setString line 60 the variable ok is never actually used. I don't know enough about Objective C to know if it is necessary or not.

@mantognini
Copy link
Member Author

I guess it was used for debugging at some point. Shouldn't be a big deal (ok == false if the owner of the pasteboard has changed but this shouldn't happen). It's nevertheless a good thing you've spotted that one.

@Foaly
Copy link
Contributor

Foaly commented Sep 6, 2017

Alright cool! I'll send a PR to fix the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
SFML 2.5.0
  
Merged / Superseded
Development

Successfully merging this pull request may close these issues.

None yet

7 participants