boyfarrell.com

Currently Featured

Making XCode Templates for GNU Scientific Library

In the last post about Xcode and GNU Scientific Library (GSL), we went through all the steps (search paths and linking) to get xcode to use the GSL library. This is unfortunately a tedious process! So to help you out I made a skeleton project that had all the correct information. However, if you used this project as the starting point for your own coding you would have been stuck with the default name that I decided. This is particular annoying because if you cut and paste this project all the time so you don’t have to keep linking and adding search paths (like I do) they all get the same name in the XCode file menu and also in spotlight! i.e. search ‘kind:xcode’ to see what I mean.

The third way: Xcode templates

When creating an XCode project there are various templates which you use as the basis of you project. For example, if you are doing a command line application but want to you Cocoa foundation classes (NSArray and NSString etc) then you would pick the ‘Command Line Utility -> Foundation Tool’ template. Here we will make a ‘Cocoa Application + GNU Scientific Library’ template, thus solving all the tedium, redundant spotlight searches and cluttered ‘Open Recent File’ menu.

Assuming that you have extracted the fully functional (Ahh… Natasha Yar, how I miss you late 80s hair styles) XCode project to the Desktop, this screen shot shows you all that needs to be done…

Thank you Hogbay Software!

posted 3 September 2008 @ 15:43 by boyfarrell » 4 Comments

Previously Featured

GNU Scientific Library and XCode 3.1

Update notice: 8th September 2008 This post has become quite popular with those using Xcode and GSL, so you might be interested in this other post, Making XCode Templates for GNU Scientific Library. Once you have a functioning project (once you have done this tutorial) that post will tell you how to add it to [...]

4 April 2008 » read » 39 Comments