What is the @package compiler directive for Cocoa?

I see a @package

lot in Apple's header files, but for the life of me, I can't find an authoritative source that describes its meaning.

+2


source to share


1 answer


@package

is a scope declaration for a specific class member. There are four:

  • @public

    : available everywhere.
  • @protected

    ... Available in the class that defines it and inherits the classes.
  • @private

    ... Available in the class that defines it.
  • @package

    : in 64-bit, for example @public

    , but only within the same structure; in 32-bit, identical @public

    .


See developer doc for details .

+10


source







All Articles