Perforce and Xcode4

I created some AppleScripts that allow you to control some basic Perforce functionality in Xcode4, which was lost when Apple released the latest version of their IDE. Perforce actually published a way of checking out files using the Behaviors functionality in Xcode (Xcode and P4), but I wanted a little more. Note, these scripts are … Read more

A note about performance

On a multi-core Mac, running 10.8, I ran a test to compare the speed differences of incrementing or decrementing a value with no-locks, atomics and finally, a mutex lock. The no-lock is the baseline, and here is the difference in speed with the later 2 items: Atomics: 3X slower on the same thread Mutex: 7X … Read more

Automating Instruments

I actually automate Instruments to get finer grain information of what an application is actually doing. To automated Instruments, according to Apple’s documentation, all you need is the DTPerformanceSession.framework… but, you actually need more than that, and you have to find where the dependencies are located. Here are all of the libraries you need: DTInstrumentsCP.framework … Read more

Duplicating projects and Xcode4

I found that when you duplicate a Xcode project, say to make experimental changes you don’t want in the original project, you find that the newly duplicated project actually points to the original project. That is because there is a workspace file within the xcodeproj bundle, project.xcworkspace, that contains the name of the original project, … Read more