Navigation

Object creation macros are now in MacCode

Tuesday, October 14th, 2008

Earlier this month I wrote up some handy object creation macros. As of today those now live in MacCode.

MacCode is a shared repository of code under the permissive 3-clause BSD license. You can check the macros out by running:

% svn checkout 'http://maccode.googlecode.com/svn/trunk/Snippets/Object creation macros/' object-creation-macros

However, if you are already using subversion, you can use svn:externals to pull them in to your existing project:

% cd project_root
% mkdir Externals
% svn add
% svn propset 'svn:externals' 'object-creation-macros http://maccode.googlecode.com/svn/trunk/Snippets/Object creation macros/' Externals/
% svn commit -m "Adding Colin Barrett's Object creation macros to Externals" Externals/
% svn update Externals/

Now, when you do an svn update, it will also update your checkout of the macros. If you want to peg it to a specific revision, you can do that too (see the documentation). You can use this same trick to pull in code from other sources too. Handy!

Comments

  1. THIS IS INDECENT CODE AND AN AFFRONT TO MY WASHINGTON, DC SMALL TOWN VALUES - Clogged Tubes replied on October 15th, 2008:

    […] COLIN HAS A POST WHEREIN HE ADMITS TO RECENTLY COMMITTING THIS ATROCITY INTO THE MACCODE REPOSITORY: #define NSBOOL(X) ((X) ? (id)kCFBooleanTrue : (id)kCFBooleanFalse) […]