Search code examples
objective-ciosautomatic-ref-countingios5.1

Converting Apple's MVC Networking sample to ARC


Has anyone converted the Apple MVC Networking sample to ARC?

http://developer.apple.com/library/ios/#samplecode/MVCNetworking/Introduction/Intro.html

As a new iOS developer I am very interested in ARC and attempted the conversion w/o success, sent a few emails to Apple, no response.

During the conversion there were some CF functions that I couldn't bridge correctly and there were all kinds of memory issues and exceptions.

Currently I don't have an example, just wanted to see if anyone else has been though the conversion, Google didn't help me out this time :)

Thanks


Solution

  • Just curious but why are you trying to do this conversion? If you are integrating this example into a project that already runs with ARC, you can exclude the source files that aren't ARC explicitly in the Compile Source section of your build phases in the Target.

    If you want to try this, select the sources that don't have ARC and hit enter. A dialog should appear where you can enter:

    -fno-objc-arc
    

    Hope this helps.