Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 8    Views: 66

mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
09/02/13 02:56 PM (12 years ago)

Messing around with ARC

I'm messing around with adding some features to my app that require ARC (Automatic Reference Counting), but ARC doesn't seem to play nice with buzztouch projects - anyone know anything about that kind of stuff? :) I've tried converting my project, but xcode throws back errors during conversion. If I can't fix this I might have to forgo this new "plugin". I could do it manually, I would need to remove every single instance of release and retain from buzztouch, which would be impractical. Just wondering if anyone has ever used ARC in their BT powered project? Cheers, David.
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
09/02/13 03:13 PM (12 years ago)
BT projects are built for an iOS version that do not support ARC. The only way to use ARC in a BT project is to remove all "release" statements. You also need to make the iOS build version 4.0 or higher, I think. There are also some other statements other than the "release" statements that need to be either removed or modified using the __bridge cast. There might be some other cases I'm forgetting but that's the gist of it. But there's no easy way to convert a BT Project. -tM
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
09/02/13 03:18 PM (12 years ago)
Perhaps this might shed some light on it? http://www.codeography.com/2011/10/10/making-arc-and-non-arc-play-nice.html I have no useful information about ARC/non-ARC. Cheers! -- Smug
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
09/02/13 03:18 PM (12 years ago)
The Buzztouch Core Version 3.0 is coming soon (close to the release of iOS 7), and this may include ARC. It seems to be the way of the future, less code, better memory management. Jake
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
09/02/13 03:31 PM (12 years ago)
Smug, you saved the day! I selected the files that needed ARC and had xcode only do those, rather than the entire project (WAY MORE PRACTICAL). TM you're right, I ended up trying to manually do it and holy crap, hundreds and hundreds of instances. Crazy, but makes sense. Nice to see you post, haven't seen you in a while. Jake, yup would be cool, seems to me would be a awesome addition. Cheers guys! Thanks! David.
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
09/02/13 04:46 PM (12 years ago)
@MrDavid I try to post on here as much as I can but you know me ;). Busy busy busy. -tM
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
09/02/13 06:00 PM (12 years ago)
I am hoping Jake is right and Buzztouch is moving to an ARC model. iOS 4 is going the way of the Dodo Bird.
 
shak77
buzztouch Evangelist
Profile
Posts: 399
Reg: Jan 18, 2011
location unknow...
7,240
like
09/02/13 06:53 PM (12 years ago)
@MrDavid- So did you get the thing that required ARC to work? Smug, Jake and I were just trying to figure out if this plugin would work but it required ARC.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
01/30/14 03:48 PM (11 years ago)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.