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

    Apr 13, 2011
    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.

    [B][I]@interface MyClass () {
        float value;
    - (void)setValue:(float)newValue;
    @implementation MyClass
    - (float)value {
        return value;
    - (void)setValue:(float)newValue {
        value = newValue;
    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

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

    Apr 13, 2011
    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