__unused variables: what are they needed for anyway?


#1

Hello,

in Chapter 24, we put the __unused keyword before the declarations of fetchConn and timer.

Why do we not leave out these variables entirely? Would the following code not be sufficient?

[[NSURLConnection alloc] initWithRequest:request delegate:logger startImmediately:YES]; [NSTimer scheduledTimerWithTimeInterval:2.0 target:logger selector:@selector(sayOuch:) userInfo:nil repeats:YES];

Or would this lead to the NSURLConnection and NSTimer objects being prematurely deallocated because ARC bars us from sending them the autorelease message?

Regards,
tajmahal