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 online now   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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
About Automatic Reference Counting (ARC) cthesky iPhone/iPad Programming 1 Oct 27, 2011 02:00 AM
Automatic Reference Counting in Objective-C kainjow Mac Programming 8 Jun 18, 2011 07:00 AM
Reference count when adding UIView to UIWindow SlowMagic iPhone/iPad Programming 1 Sep 16, 2008 11:06 AM
NSNumber reference counting question mduser63 Mac Programming 16 Nov 28, 2007 11:40 PM
Way of checking memory reference count? DaveP Mac Programming 3 Jan 5, 2006 10:29 AM


All times are GMT -5. The time now is 06:12 PM.

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

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