eczarny/xmlrpc — pull request #24 by drbobbeaty (2012-06-28 15:01:10+00:00)
Title: Added ARC Support

Adding ARC Support
=================

The simplest way to support ARC and maintain retain/release support is to make use of the compiler's knowledge of ARC support. This is easily done with something like:

```objc
#if ! __has_feature(objc_arc)
return [NSMakeCollectable(temporaryUUIDString) autorelease];
#else
return (__bridge_transfer NSString*)temporaryUUIDString;
#endif
```

I've simply loaded up the XMLRPC code into my ARC project, and the compiler pointed out all the offending method calls that I needed to correct. I've gone through and simply removed the retain/release methods where necessary, but leaving them in for the non-ARC compiles.

It's been working for me in ARC mode, quite nicely.