I am making a Cocoa application, and using Xcode for various code-generation. Works fine for generating .h and .m files for subclassing UIView, but when i subclass UIViewController i get an @interface
declaration identical in both files, except that in the .m file it has ( )
at the end:
//in MyViewController.h
@interface MyViewController : NSViewController <MyViewDelegate>
@end
but also
//in MyViewController.m
@interface MyViewController ()
@end
@implementation MyViewController
@end
Yet it compiles fine. So, assuming this is normal behavior, the two-parts of question are: (A) Why does this happen, and (B) What are the results -- especially in terms of compile order?
Thanks!