Skip to content

fix and addition #1

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

Merged
merged 2 commits into from
Aug 26, 2015
Merged

fix and addition #1

merged 2 commits into from
Aug 26, 2015

Conversation

roymacdonald
Copy link

-Added a preprocessor define so to use the glfw clipboard only on osx as it thew an error on windows.

  • Added getter and setter for text padding

@elliotwoods
Copy link
Owner

interesting. i was originally testing on windows and it was working there. i wonder if it's a problem in the glfw build on windows. i've found copy and paste isn't working for me on windows on recent oF (another addon using clipboard in the same way), didn't see the errors though (think i was going via ofxClipboard).

http://github.com/elliotwoods/ofxClipboard

maybe best would be:
a) fix ofxClipboard
b) use HAS_OFXCLIPBOARD pattern (see the recent HAS_OFXADDONNAME thread in the dev list)

happy to merge the other stuff, but a bit odd to admit clipboard for windows is broken rather than fix it.

what was the error which you got?

elliot

@elliotwoods
Copy link
Owner

also thanks for the PR! always really appreciate PR's :)

@roymacdonald
Copy link
Author

Hi elliot,
Right, I think that the ofxClipboard approach is better.
the problem resides in this line
https://github.com/elliotwoods/ofxTextInputField/blob/master/src/ofxTextInputField.cpp#L530
as it is trying to get a cocoa window on windows.
I'll check how it works with ofxClipboard and let you know.
best

elliotwoods added a commit that referenced this pull request Aug 26, 2015
@elliotwoods elliotwoods merged commit e265bee into elliotwoods:master Aug 26, 2015
@elliotwoods
Copy link
Owner

ah ok
i just realised that this repo is mainly hosted at flightphase. you might want to put your PR over there too

@roymacdonald
Copy link
Author

Yes, but your branch has a lot more updates than flightphase's.
I will PR over there too.
best

@elliotwoods
Copy link
Owner

thank you!
you're totally right about the osx stuff. just realised that this isn't a feature which i programmed myself.
it's probably quite simple to fix with an ifdef.

@roymacdonald
Copy link
Author

Sure, yet I think it would be better using the HAS_OFXADDON preprocessor thing you mentioned and use ofxClipboard.

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.

2 participants