Class extensions included in implementation files by default
| Originator: | satsumac | ||
| Number: | rdar://10772286 | Date Originated: | Jan 29th 2012 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.2.x |
| Classification: | Enhancement | Reproducible: | n/a |
Summary:
As there exist no private/protected methods in Objective-C the common practice is to use class extensions. Not optimal, but good enough I guess. It then however would be great and just logical to include an empty class extension in the ".m" file by default.
Steps to Reproduce:
Create Objective-C class file from inside Xcode.
Expected Results:
//Foo.m
#import "Foo.h"
@interface Foo ()
@end
@implementation Foo
@end
Actual Results:
//Foo.m
#import "Foo.h"
@implementation Foo
@end
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!