Skip to content

macOS arm build error  #2

@calvin2021y

Description

@calvin2021y
/tray/tray.h:103:28: error: too many arguments to function call, expected 0, have 2
  103 |     id menu = objc_msgSend((id)objc_getClass("NSMenu"), sel_registerName("new"));
      |               ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:59:1: note: 'objc_msgSend' declared here
   59 | objc_msgSend(void /* id self, SEL op, ... */ )
      | ^
In file included from tray.c:2:
/tray/tray.h:104:18: error: too many arguments to function call, expected 0, have 2
  104 |     objc_msgSend(menu, sel_registerName("autorelease"));
      |     ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:59:1: note: 'objc_msgSend' declared here
   59 | objc_msgSend(void /* id self, SEL op, ... */ )
      | ^
In file included from tray.c:2:
/tray/tray.h:105:18: error: too many arguments to function call, expected 0, have 3
  105 |     objc_msgSend(menu, sel_registerName("setAutoenablesItems:"), false);
      |     ~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/objc/message.h:59:1: note: 'objc_msgSend' declared here
   59 | objc_msgSend(void /* id self, SEL op, ... */ )
      | ^
In file included from tray.c:2:
/tray/tray.h:110:24: error: too many arguments to function call, expected 0, have 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions