Month: May 2008

  • Scripts in XCode

    The build system for SQLEditor has lots of steps, from building each of the component frameworks, compiling the application, assembling the bundle, creating a disk image and then uploading everything to the server. (Plus things like version histories and read me files).To reduce errors I have several aggregate targets and a collection of scripts, but I was puzzled how to produce those little note entries that OCUnit generates when it’s running unit tests. There were several notes I wanted to make but I couldn’t figure it out.

    However it occurred to me one day to inspect the souce of RunTargetTests and the answer was of course right there in the source.

    <filename>:<line>: note: <message>

    gives you a note.

    <filename>:<line>: <message>

    gives you a warning.

    where

    <filename>

    is the name of the file you want the message to appear from

    <line>

    is the line number in that file

    <message>

    is the message you want to display

    In the note form the word ‘note’ is a constant. Don’t replace it with anything.

    As an alternative you put in use an empty filename and 0 for the line if you’re not interested in these details.

    Example

    @echo ":0: note: disk image creation complete"

    Will display the message “disk image creation complete” as a note in the build window.

  • The inspiration for star wars?

    George Lucas in Love

    A parody on the origins of the star wars story…