Using iPhone SDK 2.1.   Background User Preferences are data and settings that are saved by your application.  The iPhone OS has a mechanism that enables an application to “associate” its settings with the default iPhone user interface.  You can access applications settings by selecting the Settings icon in the main iPhone screen.  Try it […]

When using the Director on Cocos2d and you have a Scene object in the window, your program will not receive touch events. So, your UIApplicationDelegate implementation will not receive touchesBegan notification. You can override this behavior by   1) implementing the TouchEventsDelegate protocol, which has the following specification: 2) Associate the event handler with the […]

In this tutorial, we will continue building a simple space-invader type game. We will be continuing from the tutorial presented in Part1 at https://permadi.com/blog/?p=1131; however, we are making some major changes, and I’ll explain why. The first change has to do with restructuring the CSS code so that most of the objects within the game […]

Create a new Project. Make sure the Components window is open.  If not, open it using Window->Components. Drag component from the Components window into the stage.  Resize it to the size you want.  In the next step, you can decide the scaling mode of the video, such as maintainAspectRatio or noScale. Open the Parameters window.  Use […]

Dashcode is another tool that comes with Apple iPhone SDK.  It allows you to create simple applications.  You can read an introduction to Apple’s Dashcode here.  In this tutorial, we will demonstrate interactivity and animation.  Familiarity with JavaScript and CSS is assumed. Our example will be a framework for a space-invader type game.  There will […]

Included in the iPhone SDK is another “application-builder” named Dashcode.  If you have the iPhone SDK installed (and the iPhone SDK is the only way to get Dashcode as far as I know), then you can find Dashcode at Developers::Applications folder. The icon looks like this: Dashcode was originally a tool for developing Widgets, is […]

Having good references could save programmers a lot of time, so as a newcomer to Xcode, I want to share these tips.  Note: I am using Xcode 3.1.2 Searching SDK/API on The Developer Documentation You can search the documentation using the search field on the right side project windows (see picture below), not the search […]