bengottlieb / Twitter-OAuth-iPhone

An easy way to get Twitter authenticating with OAuth on iPhone
http://www.standalone.com
799 stars 155 forks source link

Fix for non-iOS5 only ARC projects #97

Closed thijsdamen closed 6 years ago

thijsdamen commented 12 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+