Comments (5)
For what it's worth I'd also like Sparrow to be ARC compatible. Not sure how much of a nightmare it is to change that struct though. I think you can replace it with a untyped pointer and do a little pointer manipulation wherever it gets used.
from sparrow-framework.
I also think it should be possible to do it that way! I'll report my progress here.
from sparrow-framework.
I changed,
Class
//typedef struct
{
Class poolClass;
SPPoolObject *lastElement;
} SPPoolInfo;
on SPPoolObject.h to compile on ios 5 to supply ARC.
Did you make any improvements for ARC?
from sparrow-framework.
Sorry, I haven't found the time yet to look at it! In any case, I recommend you make a few tests with that change, to see if the pool works as expected. (E.g. by adding NSLogs into the SPObjectPool class, then creating a few SPPoints, releasing them, and creating them again - to see if they are correctly recycled.)
from sparrow-framework.
So, after all this time, I'm finally back and working on the next update -- and thus, finally fixed the ARC issue: you can now use Sparrow with ARC projects.
The fix was rather simply, actually; similar to what omeryavuz tried, I exchanged the struct with a normal Objective-c class. That did the trick.
Here's the corresponding commit: 771f623
from sparrow-framework.
Related Issues (20)
- Paused compressed sound restarts after interruption
- Touch coordinates inaccurate in some device orientations HOT 1
- Warning when compiling with the LLVM 3.0 compiler HOT 1
- Add more vector math methods to SPPoint HOT 2
- Bug in absolutePathToFile:withScaleFactor:
- Port Sparrow to mac os x HOT 3
- Bug in SPTween when tweening to negative value
- The "i am a descendant of myself" Paradox HOT 1
- EXC_BAD Access HOT 1
- AppScaffold Project HOT 2
- SPTextField does not like two line feed with Bitmap Font HOT 3
- SPTextField auto-size interest? HOT 10
- doubleOnPad not working properly HOT 3
- Testing on Mac HOT 4
- Resizing a SPQuad width won't work as expected HOT 6
- SPDisplayObject setRotation can hang. HOT 7
- port sparrow to android HOT 1
- All photoshop blend modes. HOT 4
- CocoaPod release won't compile HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparrow-framework.