Objective-c – What does the @package directive do in Objective-C

objective c

Does anyone know exactly what the @package directive is used for in Objective-C?

The only mention I could find of it in Programming in Objective-C 2.0 by Stephen Kochan was:

@package – For 64 bit images, the instance variable can be accessed anywhere within the image that implements the class

What? Is this restricted to being used with images, as in pictures? Or does it mean images as in disk images?

It's a confusing description, and doesn't elaborate whatsoever throughout the rest of the book….

Any help would be awesome, thanks!

Best Answer

@package is similar to internal for .NET. It means the member is accessible only from the framework in which it is defined.

Note: In 32-bit it acts like @public.