-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
COSOperator: Use NSPasteboardTypeString instead of NSStringPboardType #15716
Conversation
According to https://developer.apple.com/documentation/appkit/nsstringpboardtype?language=objc we can replace it with NSPasteboardTypeString: > In apps that adopt App Sandbox, use an NSURL object, a bookmark, or a > filename pasteboard type instead. In a nonsandboxed app, you can also > use the NSPasteboardTypeString pasteboard type.
I just realize this is all part of the Irrlicht engine, closing it here |
No, Irrlicht PRs are right here. We've forked and stripped down Irrlicht and are maintaining our fork in this repo (it used to be separate, but that caused too much trouble). |
That's good to know, there are 2-3 more files that need to be fixed regarding deprecation warnings. Would you prefer to pile it all up into one (this) PR and label it as "macOS: replace all deprecated function calls" or rather have it trickle in with such small PRs? Also as I see #13285 pinned, I'd expect those changes to be merged after the next release? |
If you have more fixes feel free to add them here.
Resolving deprecation warnings counts as bug fix, and is exempt. |
As of now, the call dropped was supported in version macOS 10.0–10.14, and the new call is in macOS 10.6+, effectively The remaining warnings are in 3 files, I'll take a look at resolving them, the latest is
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works also with Luanti built for MacOS 11.
@stefanbeller We will probably switch to SDL2 or SDL3 in future. So, I see no need to fix all this deprecated code (which also causes some bugs). |
@sfence In that case, I'll leave the PR as is. |
According to https://developer.apple.com/documentation/appkit/nsstringpboardtype?language=objc we can replace it with NSPasteboardTypeString:
Add compact, short information about your PR for easier understanding:
This PR is Ready for Review.
How to test
I assume just pasting text from the OS clipboard anywhere would be a sufficient test.