I’ve been developing a project with ARC technology for 10.6+ OS X 64-bit systems.
But now program has to support 32-bit 10.6 OS X system, but on 32-bit CPU ARC isn’t working.
If i just turn ARC off and try to compile for 32bit it will cause a lot of errors.
What is the best way to convert program with ARC to program with manual memory management?
Go through your code and
retain/releaseobjects as needed. You will need to look at each allocation of an object and see when you need to release it. You will also need to see what should be autoreleased and if/when you need to create your ownautorelease poolsanddrainthem. This is not something that can be automated if you want to do it right.You might also think about doing both. Have a 32 bit target that supports doesn’t use ARC and a 64 bit target that does. This will be lots of work, but probably not much more than the conversion. It WILL result in a much larger binary (probably 1.5 times as large depending on the ratio of code to resource items).
Check out the first answer to THIS SO question for a better explanation.