0

New to OSX programming. It is my understanding that the .m file should only have an @implementation/@end block and the .h file should only have an @interface/@end block. Not sure why when I create a new cocoa class in Xcode (version 6.1) I get both blocks in my .m file? I would upload an image but I don't have enough points.

connorwstein
  • 305
  • 2
  • 13

1 Answers1

1

You can have a "private interface" that is not contained in the header files (and thus not intended for public consumption but just for your internal use).

The most common case is the so-called "class extension".

Community
  • 1
  • 1
Thilo
  • 257,207
  • 101
  • 511
  • 656