Attached is a little "Hello World" demo for Mac OS X, using Quartz (Core Graphics) with both 32-bit and 64-bit versions.

The demo turns the screen black, prints "Hello, World!" in white Times font at the bottom-left, sleeps for 5 seconds and then exits. The demo also prints "Hello, World!" to the terminal.

To build/run the demo you will need Mac OS X (tested on 10.5/Leopard), NASM 2.07+ and XCode.

Edit: Fixed attached file so that the demo actually sleeps for 5 seconds, as stated in the comments, instead of 1 second.
Posted on 2009-11-02 22:00:41 by SpooK