Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

FalconsMalteser

macrumors newbie
Original poster
Jun 5, 2011
16
0
Hi guys,

I started learning programming using Xcode 3, because the book I was learning from used that. I decided however, that it would probably be beneficial to move over to Xcode 4. However, in Xcode 4, when it comes to releasing objects it doesn't let you use:
Code:
-(void)dealloc {
[<variable> release];
[super dealloc];
}
It comes up with the errors

'ARC forbids explicit message send of 'release'
'ARC forbids explicit message send of 'dealloc'

I'm now not sure how to realise objects.

Any help/advice would be great!

Cheers
 
Looks like you're using the Xcode 4.2 beta.

At least parts of it are currently under the NDA I guess, so I suggest you have a look at the Apple documentation and some of the WWDC 2011 'Developer Tools' track videos to find out more about ARC, and why it's preventing you from releasing objects.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.