- 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 shocould not block the calling thread until the method returns. without it, the caller will block,
Even though the method's return type is void. obviusly, it is never used with anything other than void, as doing so wocould mean the method returns something, but the caller doesn' t get it.
Reference: http://objc.toodarkpark.net/moreobjc.htmlhttp://stackoverflow.com/questions/5609564/objective-c-in-out-inout-byref-byval-and-so-on-what-are-they