1

Interface definitions in implementation files look like this:

@interface MyClass ()

@property ...;

@end

While interfaces in the header files have the superclass instead of the parentheses (@interface MyClass : NSObject). Why is that? Where does it come from?

gklka
  • 2,459
  • 1
  • 26
  • 53
  • This may be described in https://stackoverflow.com/questions/11679885/. Does it answer your question? – Mats Oct 25 '17 at 11:24
  • 2
    It's called "Class Extensions". For more information see ["Customizing Existing Classes" in the Programming in Objective-C guide](https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html) – David Rönnqvist Oct 25 '17 at 11:26

0 Answers0