Author Topic: Mac OS X - "Hello World" in Quartz (Core Graphics)  (Read 11662 times)

Offline Keith Kanios

  • Full Member
  • **
  • Posts: 383
  • Country: us
    • Personal Homepage
Mac OS X - "Hello World" in Quartz (Core Graphics)
« on: September 21, 2014, 01:13:16 PM »
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 - 10.9), NASM 2.07+ and XCode.

Build instructions are commented at the top of the attached file.

Offline captaincode

  • Jr. Member
  • *
  • Posts: 2
Re: Mac OS X - "Hello World" in Quartz (Core Graphics)
« Reply #1 on: November 28, 2014, 05:52:01 AM »
Thanks so much this example is good.

Offline jnbutler1815

  • New Member
  • Posts: 1
Re: Mac OS X - "Hello World" in Quartz (Core Graphics)
« Reply #2 on: February 21, 2016, 02:08:18 AM »
Hey Keith, is there any tutorials that you know of on the net for NASM programming on Mac?
I can't find anything on the internet that works on my Mac except your program.
I am running Max OS X 10.11.3 El Capitan and NASM 2.11.08

Thanks for your input.