求懂objective-c的大神解释下面这段话

求懂objective-c的大神解释下面这段话

题目
求懂objective-c的大神解释下面这段话
Also,object/category named pairs must be unique.Only one NSString Name Utili-
ties category can exist in a given Objective-C namespace.This can be tricky because the
Objective-C namespace is shared between the program code and all the libraries,frame-
works,and plug-ins.This is especially important for Objective-C programmers writing
screensavers,preference panes,and other plug-ins because their code will be injected intoapplication or framework code that they do not control.
答案
你这段应该是出自Stephen Categories G. Kochan的《Programming in Objective-C》一书
本小节应该是(我们可以称作类目、分类)的某些注意事项
我认为这段的知识点如果不明白可以pass掉,编译器会提醒你的分类是否使用正确
Also, object/category named pairs must be unique.
同样的,对象/分类命名对必须是唯一的. 【应该指的是类似这样的@interface NSString(Utilities)】
Only one NSString Name Utili-
ties category can exist in a given Objective-C namespace.
在给定的Objective-C命名空间中,只能存在一个NSString(私有的)分类.
This can be tricky because the
Objective-C namespace is shared between the program code and all the libraries, frame-
works, and plug-ins.
这样做会比较复杂,因为Objective-C命名空间共享于程序代码和所有库、框架、插件之间.
This is especially important for Objective-C programmers writing
screensavers, preference panes, and other plug-ins because their code will be injected into application or framework code that they do not control.
这对于编写屏保、偏好设置面板和其他插件的oc程序员尤为重要,因为这些代码将插入到他们无法控制的应用程序或框架中
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点

超级试练试题库

© 2017-2019 超级试练试题库,All Rights Reserved.