Skip to content

On macosx and iphone

meeloo edited this page Feb 21, 2011 · 2 revisions

Getting Started MacOSX

Requirements

  • a Mac computer with 10.5 (Leopard) (Mac OS X 10.4 Tiger might work but we honestly haven’t tried in a long time).
  • Xcode version 3.x, free from Apple (version 2.5 for Tiger…).
  • for iPhone development you will need the iPhone SDK (includes Xcode 3.x).

Downloading the sources

You can download the sources from the git repository by opening a terminal window and typing:


git clone git://github.com/libnui/nui3.git

Building and running nuiDemo

Open the Xcode project for nuiDemo in the Finder (look in the folder nui3/examples/nuiDemo) and make Xcode build and run the project.
Compiling all the project should take a while and eventually end successfully launching nuiDemo.
Every tutorials should build and run out of the box.

iPhone specifics

iPhone development requires that you subscribe to the iPhone developer program at http://developer.apple.com . NUI ease the learning curve as you don’t have to learn a new language if you already know C++, but you’ll still have to learn Xcode basics.
NUI also works on the iPhone simulator so you can give it a try even if you are not yet subscribed to the dev program from Apple.

Where to go from there?

You can toy around with the tutorials and examples to get a feel of how to use the framework. You can also create a new project by using “Yapuka” (in nui3/tools/yapuka) and read the TutorialCommon.