Deprecation and compile errors in MYNetwork

I’ve started playing with Jens Alfke’s MYNetwork library for an upcoming project, but I was getting some compile errors straight off the bat. Most were solved by actually RTFM, but the last required a bit of minor surgery.

MYNetwork depends on MYUtilities, which in turn includes a subset of GoogleToolbox. One of the files from GoogleToolbox was throwing the following error when I built targeting Leopard:

warning: 'stringWithCString:' is deprecated

This warning is upgraded to a full-blown error when trying to compile against Snow Leopard.

To fix this error, replace the file MYUtilities/GoogleToolboxSubset/GTMDefines.h with the newest version of the same file from the GoogleToolbox Google Code repository. This file contains updated method definitions which take account of certain method deprecations in OS X 10.5 and 10.6, including our little friend stringWithCString:.