Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 6, 2011, 04:33 PM   #1
Branskins
macrumors 6502a
 
Join Date: Dec 2008
Automatic Reference Counting ?

On the iOS 5 technology page in the dev center it says:
Automatic Reference Counting (ARC) for Objective-C makes memory management the job of the compiler. By enabling ARC with the new Apple LLVM compiler, you will never need to type retain or release again, dramatically simplifying the development process, while reducing crashes and memory leaks. The compiler has a complete understanding of your objects, and releases each object the instant it is no longer used, so apps run as fast as ever, with predictable, smooth performance.

Was this in there before?
Branskins is offline   0 Reply With Quote
Old Jun 6, 2011, 04:34 PM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Sounds very cool. All the advantages of garbage collection without the overheads!
robbieduncan is offline   0 Reply With Quote
Old Jun 7, 2011, 03:16 AM   #3
jnoxx
macrumors 65816
 
jnoxx's Avatar
 
Join Date: Dec 2010
Location: Aartselaar // Antwerp // Belgium
So this means alot more newbie developers will have a try to this iOS development. oh oh..
jnoxx is offline   0 Reply With Quote
Old Jun 7, 2011, 08:52 AM   #4
Branskins
Thread Starter
macrumors 6502a
 
Join Date: Dec 2008
Watch out
Branskins is offline   0 Reply With Quote
Old Jun 7, 2011, 06:57 PM   #5
MattInOz
macrumors 68030
 
MattInOz's Avatar
 
Join Date: Jan 2006
Location: Sydney
Quote:
Originally Posted by jnoxx View Post
So this means alot more newbie developers will have a try to this iOS development. oh oh..
Or experienced developers getting to the nut of the problem quicker.
So the value comes from solving problems for either group, not just from understanding an obscure language.

I know I'm bring forward joining the Dev Program as a newbie because of lots of new API's hinted at in iOS5 that i think are going to make the job of creating the function I want easier. Maybe easier is the wrong word, more direct.
__________________
There is no such thing as "Collective Wisdom"
[ iPhone 5s, iPad Mini, 13" MacBookPro 2.7Ghz, 27"Al iMac i7, Black MacBook 13"]
MattInOz is offline   0 Reply With Quote
Old Jun 8, 2011, 06:26 AM   #6
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
From the quick scan-through of the documentation there are almost as many rules required for this as there are for the existing memory management rules (which are actually very simple and easy to follow)
robbieduncan is offline   0 Reply With Quote
Old Jun 10, 2011, 09:22 AM   #7
odedia
macrumors 6502a
 
Join Date: Nov 2005
Quote:
Originally Posted by robbieduncan View Post
From the quick scan-through of the documentation there are almost as many rules required for this as there are for the existing memory management rules (which are actually very simple and easy to follow)
You just need to stay pure Objective-C and use properties as much as possible. Really not that hard.
odedia is offline   0 Reply With Quote
Old Jun 10, 2011, 10:10 AM   #8
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by odedia View Post
You just need to stay pure Objective-C and use properties as much as possible. Really not that hard.
For many I suspect that will be just fine. I have a bit of an issue that I use singletons quite a lot (I suspect this is a stylistic error with my code) and have old-school singletons that follow Apple's recommended code for this from a couple of years back where I override release/autorelease etc thus breaking ARC.
robbieduncan is offline   0 Reply With Quote
Old Jun 10, 2011, 10:35 AM   #9
ViviUO
macrumors 6502
 
Join Date: Jul 2009
Quote:
Originally Posted by jnoxx View Post
So this means alot more newbie developers will have a try to this iOS development. oh oh..
You say this as if it's a bad thing. Are people not supposed to learn new things?

If that is in fact what you mean, get over yourself.
ViviUO is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Automatic and Jawbone Team Up to Integrate Automatic Data Into Jawbone UP App MacRumors iOS Blog Discussion 11 May 15, 2014 02:08 PM
2 weeks and counting..and no 5s :( Krissypantz2828 iPhone 14 Oct 13, 2013 09:43 AM
October 1st reference in media event reference to next media event for iPad? knemonic iPad 7 Sep 13, 2012 02:42 PM
New iPad App for Baby Counting landeekids iPad Apps 0 Sep 6, 2012 09:22 AM
Number image counting game ericrwalker Wasteland 0 Jul 19, 2012 12:46 PM

Forum Jump

All times are GMT -5. The time now is 04:23 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC