@package Instance Variables

来源:互联网 发布:淘宝草稿箱在哪里找 编辑:程序博客网 时间:2024/05/22 01:36

转自:http://developer.apple.com/library/mac/#releasenotes/Cocoa/RN-ObjectiveC/_index.html


@package is a new instance variable protection class, like @public and @protected@package instance variables behave as follows:

  • @public in 32-bit;

  • @public in 64-bit, inside the framework that defined the class;

  • @private in 64-bit, outside the framework that defined the class.

In 64-bit, the instance variable symbol for an @package ivar is not exported, so any attempt to use the ivar from outside the framework that defined the class will fail with a link error. See "“64-bit Class and Instance Variable Access Control”" for more about instance variable symbols.


原创粉丝点击