Xcode 4

Discussion in 'iOS Programming' started by FalconsMalteser, Aug 17, 2011.

  1. FalconsMalteser macrumors newbie

    Joined:
    Jun 5, 2011
    #1
    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
     
  2. Biolizard macrumors 6502

    Joined:
    May 20, 2008
    Location:
    London, United Kingdom
    #2
    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.
     
  3. FalconsMalteser thread starter macrumors newbie

    Joined:
    Jun 5, 2011
    #3
    I am yes. Okay, cheers.

    Thanks for your help!
     

Share This Page