Closed thijsdamen closed 6 years ago
No, this doesn't make the library ARC compatible.
What I have done, I changed a weak to unsafe_unretained.
weak is supported in ARC in iOS5+ only (http://blog.mugunthkumar.com/articles/migrating-your-code-to-objective-c-arc/). The fallback is unsafe_unretained
With this modification, people can still use this project in a ARC project, where all .m files use the --fno-objc-arc flag, without it, this library is completely useless as-is in any ARC project that support 4.0+
No, this doesn't make the library ARC compatible.
What I have done, I changed a weak to unsafe_unretained.
weak is supported in ARC in iOS5+ only (http://blog.mugunthkumar.com/articles/migrating-your-code-to-objective-c-arc/). The fallback is unsafe_unretained
With this modification, people can still use this project in a ARC project, where all .m files use the --fno-objc-arc flag, without it, this library is completely useless as-is in any ARC project that support 4.0+