From the code(bold), compile error occur. how to fix this?
I downloaded project. If compile as it is, compile succeed.
But, if I create my own project and make codes without any change, compile error occurs.
It seems error occurs because Xcode version difference.
How could I solve this?
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
'autorelease' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'autorelease'
receivedData = [[NSMutableData data] retain];
ARC forbids explicit message send of 'retain'
--
You received this message because you are subscribed to the Google Groups "iPhone SDK Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/iphonesdkdevelopment/-/tbgjfspF1F4J.
To post to this group, send email to iphonesdkd...@googlegroups.com.
To unsubscribe from this group, send email to iphonesdkdevelop...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphonesdkdevelopment?hl=en.
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
'autorelease' is unavailable: not available in automatic reference counting mode
ARC forbids explicit message send of 'autorelease'
You can just delete the bit that ARC doesn't like "autorelease", so it reads:
receivedData = [[NSMutableData data] retain];
ARC forbids explicit message send of 'retain'