-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fix Objective-C/C++ codes to supporting ARC #6889
Conversation
fixed bugs about casting (SoundOutputStream *)soundInputStream).delegate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great @2bbb ! Great work
Maybe just add this to the prime delegate of each platform and not in each obj-c converted but no issues as it's just safeguard
#if !__has_feature(objc_arc)
# error need ARC
#endif
I'll check it out tomorrow and test vs some projects
So far looking good, reviewed changes
thanks for the comments.
OK.
I will test too, but do you think is this fine? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change:
error need ARC
to something a bit more descriptive?
error Please enable ARC (Automatic Reference Counting) at the project level
Looking good, did initial tests. will continue before fully approving We are now locked to iOS 13 + with inclusion of C++17 filepath just a FYI! No issue with this though! |
Might be a good idea to generate a guide to upgrade a project that is not ARC into ARC oF future though, I had some custom AppDelegates and views that forced into the new ARC realms. Will help devs |
…l section of ofConstants.h
I think what replacing many pairs of an explicitly defined instance variable, I will do this with other PR after this PR is finished. |
Been testing looks good |
Good to merge @ofTheo |
Hello @2bbb I've tried to port ofxSyphon to ARC with no success. |
this PR makes goal to fix to support all not ARC codes as ARC codes.
please see discussion on: #6848