Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARC Support #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

ARC Support #23

wants to merge 5 commits into from

Conversation

ryanolson
Copy link

Adds ARC support

@ryanolson ryanolson mentioned this pull request Jul 26, 2012
@vicpenap
Copy link
Owner

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.

@thomasconner
Copy link

You could release two versions of the library. An ARC version and a non-ARC version. Similar to how SDWebImage does.

@thomasconner
Copy link

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

@vicpenap
Copy link
Owner

vicpenap commented Sep 8, 2012

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.

#if __has_feature(objc_arc)
// has ARC
#else
// doesnt have ARC
#endif


Reply to this email directly or view it on
GitHubhttps://github.com//pull/23#issuecomment-8396853.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants