Open ryanolson opened 12 years ago
Cool! I'm not sure yet of when adding that, though. As I have already published a version without ARC, I'm not sure of how to bring ARC support.
Shall I switch to ARC and break compatibility with non-ARC projects that are currently using the lib? Or shall I detect if ARC is enabled or not, and manage memory manually in the latter case? Anyway, your patch just removes explicit memory management, so detecting ARC support would need an extra effort.
You could release two versions of the library. An ARC version and a non-ARC version. Similar to how SDWebImage does.
I would like to use this library but my project currently uses ARC also. Maybe using something like the following would allow you to support both version in one library.
#if __has_feature(objc_arc)
// has ARC
#else
// doesnt have ARC
#endif
Yes, that's one alternative. The other one is supporting only ARC. I will probably choose the latter.
However, you can use PrettyKit in the meanwhile, if you import It through CocoaPods. CocoaPods will manage ARC and non-ARC code automagically :)
No dia 08/09/2012, às 21:16, Thomas Conner notifications@github.com escreveu:
I would like to use this library but my project currently uses ARC also. Maybe using something like the following would allow you to support both version in one library.
// has ARC
// doesnt have ARC
— Reply to this email directly or view it on GitHubhttps://github.com/vicpenap/PrettyKit/pull/23#issuecomment-8396853.
Adds ARC support