Voices That Matter

Xcode

iPhone Developer Tips Stats:
Past 30 days - Pageviews: 88,766 Visitors: 61,679
Thank you everyone! Let's shoot for 100,000 by May. Pass it on...



Tell Xcode Not to Compile a File

By default, when you create a new file or import a file into Xcode, if the file type is recognized as a source file (.c, .m .js, etc), the file is added to the Compile Sources folder in the application target.
You may not always prefer this default action – for example, if a JavaScript [...]

Xcode

Killer Xcode Tips and Tricks – Tips 1 to 10

My world is surrounded by sticky notes, both electronic and paper, doing my best to keep track of Xcode shortcuts, tips and tricks. I strive to use the mouse as little as possible when coding, and without these tips I’d be lost. What better place to keep track of this stuff than to write about [...]

Xcode

Where Does Xcode Simulator Write Files?

When working with Xcode and running apps in the Simulator, looking at files written to your system is often a necessity to verify all is well. For example, I’m working on a project at the moment that requires updating a plist (XML file) when the application exits. Once the content is written to the plist, [...]

Xcode

Static Code Analysis (Clang) and Xcode 3.2

With the release of Xcode 3.2 (available with Mac OX 10.6 – Snow Leopard) you can easily run a static analysis check on your code, thanks to integration of Clang. If you’ve worked with Clang prior to its integration of Xcode, you already know just how cool this is for . If you are new [...]

Xcode

Build iPhone Apps for 2.2 and Earlier, Using Xcode 3.2 and Snow Leopard

Once you upgrade to Snow Leopard, you’ll notice a few things have changed as far as how to create builds for versions of the iPhone/iPod prior to 3.0. The changes are minor, however, I think you’ll agree that things have been simplified.
Let’s start with how to get your system working with Snow Leopard:
Install Xcode/SDK for [...]

Xcode

iTunes Icon for Ad-hoc Distributions

Creating an icon for iTunes adhoc / ad-hoc distributions.

Xcode

Xcode, Folders and the File System – Part 2

In Part 1 of Xcode, Folders and the File System I walked through a short example on how to import folders into Xcode such that resources within a project have a folder structure that matches the file system.
In this post I will show you two ways to access the imported resources, one by specifying a [...]

Xcode

Xcode, Folders and the File System – Part 1

Xcode provides a built in mechanism for organzing content within a project (control-click or right click -> Add -> New Group). For example, in the image below, I’ve created a number of groups for separating the primary functionality of an application into model classes and views.

Although this is nice, for the most part the [...]

Xcode

Finding the Xcode Project File in a Folder

This barely qualifies as a tip worthy of publishing, however, it’s something I use regularly so I figured it’s worthwhile passing on.
I’ve been working with some monster projects as it relates to content. What that translates to is really long lists of files inside of Finder. Since I bounce between a handful of projects over [...]

Xcode

iPhone Distribution Build Cheatsheet

For anyone who’s been through creating a distribution build, Ad Hoc or for the App Store, you know all to well it’s no walk in the park. After going through this a few times, I began writing notes to myself, which eventually become a rather lengthy checklist.
I thought this same information might be helpful for [...]

Xcode

Adding Compiler Options to Project Templates

In the previous post on GCC and unused values, I made a change to a compiler option such that statements that have no effect are flagged as warnings. Problem is, this change only applies to the current project. For all new projects you create, you will have to make the same change. There is [...]

Xcode

Gotcha: GCC and Unused Values

Subtle typos and the problems they bring, it’s enough to drive one nuts. Let me share a recent experience that will shed some light on my most recent experience. Below is a short snippet of code that show something similar to what I was recently attempting to do. It’s nothing more than a variable definition, [...]

Xcode

Xcode Code Completion Macros

In the previous post I described the basics for working with code completion in Xcode. In this post I will show how you can use built-in text macros to insert various code fragments.
As an example, begin by entering ifelse into Xcode and follow this by pressing Control . (control period) and you’ll see the following [...]

Xcode

Xcode Code Completion

What follows is a quick review of how I use code completion in Xcode. Chances are that options and features exist beyond what I’ll cover here, so comments and suggestions are welcome.
Let’s say I want to insert a CGRectMake method. I can begin by typing CG and pressing F5 or Option-esc, which will popup a [...]

Xcode

Testing Application Names on Home Screen

In my previous post I described how to change the application name that is shown below the icon on the iPhone home screen. Knowing how to change and test the name becomes important as you get close to submitting your application to Apple. What follows is some insight based on my recent experience naming an [...]

Xcode