Objective-C 方法类型限定
来源:互联网 发布:怎么添加网络磁盘 编辑:程序博客网 时间:2024/05/22 18:21
- in: argument is an input argument only and won’t be referenced later
- out: argument is an output argument only, used to return a value by reference
- inout: argument is both an input and output argument
- const: the (pointer) argument is constant
- bycopy: instead of using a proxy/
NSDistantObject
, pass or return a copy of the object - byref: use a proxy object (default)
- oneway: is used with the distributed objects API, which allows use of objective-c objects between different threads or applications. It tells the system that it should not block the calling thread until the method returns. Without it, the caller will block, even though the method's return type is void. Obviously, it is never used with anything other than void, as doing so would mean the method returns something, but the caller doesn't get it.
参考:
http://objc.toodarkpark.net/moreobjc.html
http://stackoverflow.com/questions/5609564/objective-c-in-out-inout-byref-byval-and-so-on-what-are-they
- Objective-C 方法类型限定
- objective-c 属性限定符
- [Objective-C]Class类型、class方法
- [Objective-C]Class类型、class方法
- [Objective-C]Class类型、class方法
- Objective-C 【动态类型检测&响应方法】
- [Objective-C]Class类型、class方法
- Objective-c:集合类型遍历方法详解
- C存储类型和类型限定符
- C 类型限定符const 和volatile
- C语言的const类型限定符
- C语言的volatile类型限定符
- C语言的restrict类型限定符
- Objective-c 枚举类型
- objective-c 类型转换
- objective-c类型转换
- [Objective-C] BOOL类型
- Objective-C类型推断
- 暑假集训#1 B题
- 编程珠玑第一章课后习题
- Android 一键锁屏 问题与解决
- Linux下代码补全的真正神器v
- cf194 div2 A. Candy Bags
- Objective-C 方法类型限定
- 从Qt4.x升级至Qt5工程代码需做的改变
- 用js实现的非浏览器的全屏弹窗
- [unity基础教程] unity Mathf 数学运算(C#)
- web开发者要学的知识
- 【念7.27】我是一个“无赖”
- 浅析Spring框架设计
- CSS3 圆角(border-radius)
- Topic Model的分类总结(LDA变种)