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

[OperatingSystemHelpers][MacOS] If the AppKit library is not found, u… #71

Closed
wants to merge 0 commits into from

Conversation

lihaochen910
Copy link
Contributor

MacOS 14.4.1, Apple M2 Ultra
For some unknown reason, my version of macOS cannot find the AppKit dynamic library file: /System/Library/Frameworks/AppKit.framework/Versions/Current/AppKit, and the target pointed to by the soft link is missing /System/Library/Frameworks/AppKit. framework/AppKit. So I added an alternate way: access/modify clipboard from sdl dynamic library

Copy link
Owner

@isadorasophia isadorasophia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! :)

src/Murder.Editor/Utilities/OperatingSystemHelpers.cs Outdated Show resolved Hide resolved
@@ -453,7 +453,7 @@ public static (bool modified, int result) DrawEnumField(string id, Type enumType
return (false, 0);
}

return (modified, (int)values.GetValue(result)!);
return (modified, values.GetValue(result)!);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interesting, I have fixed this a couple of times so I can see the previous code being a problem. Do you remember how the enum that reproduced this was declared?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my English is not very good. This example may cause previous code errors:
Public enum MyEnum: byte {}

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.

None yet

2 participants