boyfarrell.com

3 September 2008

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!

4 Comments currently posted.

Jeff says:

The link to the Hogbay’s XCode Template Factory is gone.

boyfarrell says:

Hi Jeff,
I have sent an email to the Hogbay folks and will redirect the link when they get back to me. It seems that they have had a revamp of their site so things got lost!

boyfarrell.com » GNU Scientific Library and XCode 3.1 says:

[...] 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 [...]

hac says:

Your link is down now as well.

Post a comment on this entry: