Xcode 4.5.1 and class extensions not enabled by default

Discussion in 'iOS Programming' started by daproject85, Oct 13, 2012.

  1. daproject85 macrumors member

    Joined:
    Apr 13, 2011
    #1
    Hi Forum,

    Can anyone help me verify this. When I had XCode 4.4 when I would create a new objective-C class file it would by default have the class extension at the top of the implementation file e.g.

    Code:
    [B][I]@interface MyClass () {
        float value;
    }
    - (void)setValue:(float)newValue;
    @end[/I][/B]
     
    @implementation MyClass
     
    - (float)value {
        return value;
    }
     
    - (void)setValue:(float)newValue {
        value = newValue;
    }
     
    @endalue;
    }
     
    @end
    Now that I have XCode 4.5.1 when I create a new class the extension at the top is not enabled by default. Has apple taken it out by default? ( meaning users have to type it themselves?
     
  2. CodeBreaker macrumors 6502

    Joined:
    Nov 5, 2010
    Location:
    Sea of Tranquility
    #2
    Hmm, I think it is only put in by default for UIVewController/UITableViewController subclasses.
     
  3. daproject85 thread starter macrumors member

    Joined:
    Apr 13, 2011
    #3
    no its for all of them , i am looking at all the projects i made with 4.4 and every class has it
     

Share This Page