Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call NSBeep from Delphi

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 NSBeep from Delphi application?

like image 624
gabr Avatar asked Apr 23 '12 19:04

gabr


1 Answers

It's just a plain C function:

procedure NSBeep; cdecl;
  external '/System/Library/Frameworks/AppKit.framework/AppKit' name '_NSBeep';
like image 183
Giel Avatar answered Oct 01 '22 00:10

Giel