How to call NSBeep from Delphi

前端 未结 1 1894
日久生厌
日久生厌 2021-01-11 09:38

I\'m looking for a MessageBeep replacement on the OS X. It seems that the proper function to call would be NSBeep but it is not supported by XE2 RTL.

How do I call N

1条回答
  •  春和景丽
    2021-01-11 10:16

    It's just a plain C function:

    procedure NSBeep; cdecl;
      external '/System/Library/Frameworks/AppKit.framework/AppKit' name '_NSBeep';
    

    0 讨论(0)
提交回复
热议问题