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