Based on the quick glance I took at your code it looks like your problem is with how you are dereferencing the BOOL in the NSLog line. Since saying "%@" in cocoa is a macro to dereference an API object, you are getting (null) because you can't dereference a BOOL. This is because a BOOL is a primitive type. I am not sure how to format a string such that BOOL is converted to "YES" or "NO" but, since I don't think there is any built-in mechanism to do that, you could just dereference it as an integer (using "%d") and then read it as 1 or 0.
That would change your NSLog line to be:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier> NSLog(<font color = orange>@"newRef=%d"</font>,newReference);
</font>[/code]
Then if newReference is true, you will get "newRef=1" or if false you will get "newRef=0".
Try that,
Jeff.