@package指令在Objective-C中做了什么?

What does the @package directive do in Objective-C?

有人确切知道@package指令在objective-c中的用途吗?

我在Stephen Kochan在Objective-C 2.0的编程中唯一能找到的是:

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

什么?这是否仅限于用于图像,如图片?或者它是指磁盘映像中的映像?

这是一个令人困惑的描述,在书的其余部分没有详细阐述任何内容……

任何帮助都太棒了,谢谢!


(P)字母名称0类似于字母名称1。It means the member is accessible only from the framework in which it is defined.(p)(P)注:In 32-bit it acts like EDOCX1 original 2.(p)


(P)苹果's documentation explains this a bit,but here's a bit more detail…(p)(P)Instance variables that are declared under EDOCX1 sil文0 will only be accessible by code from the same framework,library or executable.This is most similar to EDOCX1 in C°35;and EDOCX1 original 5 in VB.net,but other programming languages have similar protections schemes as well(Java has EDOCX1 original 6).(p)(P)For instance,image a framework,EDOCX1 English 7,for managing recipes:(p)字母名称(P)The recipe controller will be able to access the names of recipes directly.You would be able to write some things like this in the EDOCX1 penographic 8 since it's part of the same framework:(p)字母名称(P)如果你想写下一个above code in an application linking to EDOCX1 commercial 9,though,it would cause a compiler mistake since you don't have access to that variable.最后,当32-比特的变量被汇编出来时,如果它们被宣布为在EDOCX1下的字母,或是在EDOCX1下的字母2中的字母,或是在Instead下,那么我们就为这里的差异观察。(p)(P)这是一个新的事实,因为它只是一个额外的方式打破你的阶级的封装。As has always been true,you're probably better off working with EDOCX1 pensible 12x1-variables only and having accessor methods for them.In fact,for a while apple was trying to push this by including EDOCX1With properties in objective-C 2.0,sticking with EDOCX1 penographic 12 is easy enough,and depending on what platform you're targeting,you can leave out the instances variables entirely.(p)图像(P)有一件事是,以前曾有人提出过的一个小问题涉及到图像的各个方面。In fact,the word image as used in the description of EDOCX1 universal 0 communal variables has nothing to do with graphical images.Instead it is referring to images that the dynamic linker is able to load.一般而言,Frameworks,and dynamic libraries are all considered images by the linker(though they are handled slightly differently).You'll see the word image pop up every 11 and a while.一个普通运行中的错误是"动态图像没有发现"。You'll also find the use of the word image scattered through documentation for EDOCX1.阅读通过人的页面为EDOCX1的英文本16可能有助于清除这个词的模糊性。EDOCX1可宣布作为EDOCX1的字母0的变量,但它没有以图像作为原问题的内容。(p)