In the Weak References section when I add _weak to the
Employee *holder; ivar declaration to fix the retain cycle I get an error "Parse Issue - Unknown type name _weak.
Running Xcode 4.2.
Is there a build setting that allows _weak to be used. I looked but can’t find anything.
I am also running into this in Chapter 24, Callbacks where it is indicated to use “_unused” to suppress the warning that the *timer variable is not used. When I prepend “_unused” to the:
NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:2.0 target:logger selector:@selector(sayOuch:) userInfo:nil repeats:YES];
statement, I get a hard “User of undeclared identifier ‘_unused’”.
The fact of these two (to me) similar issues leads me to believe that there is some configuration or build parameter (compiler settings?) that isn’t set correctly in my installation of Xcode.