What is the @package compiler directive for Cocoa?
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 to share