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

daproject85

macrumors member
Original poster
Apr 13, 2011
37
0
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?
 
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?

Hmm, I think it is only put in by default for UIVewController/UITableViewController subclasses.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.