You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
I solved the issue by adding #import <Cocoa/Cocoa.h> on top of the MASShortcut.h, but I'm unsure if it's a proper solution. Also, if the problem is related to api changes, maybe it'd be a good idea to add the fix to the library as well.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi, thank you for the problem report. I assume NSEvent is declared in Cocoa.h, but the bridging header does not import this file. Could you please try to move the line #import <Cocoa/Cocoa.h> into the file ...-Bridging-Header.h or something like this? Sorry for the late reply.
Hello.
I'm using xcode beta and I'm trying to use MASShortcut within a swift project.
After importing MASShortcut in bridging header file I'm getting the following error during compilation:
And this is a
MASShortcut.h:49
:Maybe NSEvent is not in the carbon anymore?
I solved the issue by adding
#import <Cocoa/Cocoa.h>
on top of theMASShortcut.h
, but I'm unsure if it's a proper solution. Also, if the problem is related to api changes, maybe it'd be a good idea to add the fix to the library as well.Thanks.
The text was updated successfully, but these errors were encountered: