![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/doc/gnustep-base-doc/Base/Reference/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>NSMethodSignature class reference</title> </head> <body> <font face="serif"> <a href="Base.html">Up</a> <br /> <h1><a name="title$NSMethodSignature">NSMethodSignature class reference</a></h1> <h3>Authors</h3> <dl> <dt>Andrew Kachites McCallum (<a href="mailto:mccallum@gnu.ai.mit.edu"><code>mccallum@gnu.ai.mit.edu</code></a>)</dt> <dd> </dd> </dl> <p><b>Copyright:</b> (C) 1994-2015 Free Software Foundation, Inc.</p> <div> </div> <h1><a name="001000000000"> Software documentation for the NSMethodSignature class </a></h1> <h2><a name="class$NSMethodSignature">NSMethodSignature</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSMethodSignature.h</dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> <strong>Class</strong> encapsulating type information for method arguments and return value. It is used as a component of <a rel="gsdoc" href="NSInvocation.html#class$NSInvocation">NSInvocation</a> to implement message forwarding, such as within the distributed objects framework. Instances can be obtained from the <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a> method <a rel="gsdoc" href="NSObject.html#method$NSObject-methodSignatureForSelector$">[NSObject -methodSignatureForSelector:]</a> . </p> <p> </p> <p> Basically, types are represented as Objective-C <code>@encode(...)</code> compatible strings. The arguments are numbered starting from 0, including the implicit arguments <code><em>self</em></code> (type <code><strong>id</strong></code>, at position 0) and <code><em>_cmd</em></code> (type <code><strong>SEL</strong></code>, at position 1). </p> <p> </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSMethodSignature.html#method$NSMethodSignature+signatureWithObjCTypes$">+signatureWithObjCTypes:</a></li> <li><a rel="gsdoc" href="NSMethodSignature.html#method$NSMethodSignature-frameLength">-frameLength</a></li> <li><a rel="gsdoc" href="NSMethodSignature.html#method$NSMethodSignature-getArgumentTypeAtIndex$">-getArgumentTypeAtIndex:</a></li> <li><a rel="gsdoc" href="NSMethodSignature.html#method$NSMethodSignature-isOneway">-isOneway</a></li> <li><a rel="gsdoc" href="NSMethodSignature.html#method$NSMethodSignature-methodReturnLength">-methodReturnLength</a></li> <li><a rel="gsdoc" href="NSMethodSignature.html#method$NSMethodSignature-methodReturnType">-methodReturnType</a></li> <li><a rel="gsdoc" href="NSMethodSignature.html#method$NSMethodSignature-numberOfArguments">-numberOfArguments</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSMethodSignature+signatureWithObjCTypes$">signatureWithObjCTypes: </a></h3> + (<a rel="gsdoc" href="#class$NSMethodSignature">NSMethodSignature</a>*) <b>signatureWithObjCTypes:</b> (const char*)t;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Build a method signature directly from string description of return type and argument types, using the Objective-C <code>@encode(...)</code> type codes. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMethodSignature-frameLength">frameLength </a></h3> - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>frameLength</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Number of bytes that the full set of arguments occupies on the stack, which is platform(hardware)-dependent. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMethodSignature-getArgumentTypeAtIndex$">getArgumentTypeAtIndex: </a></h3> - (const char*) <b>getArgumentTypeAtIndex:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)index;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns Objective-C <code>@encode(...)</code> compatible string. Arguments are numbered starting from 0, including the implicit arguments <code><em>self</em></code> (type <code><strong>id</strong></code>, at position 0) and <code><em>_cmd</em></code> (type <code><strong>SEL</strong></code>, at position 1). <br /> Type strings may include leading type qualifiers. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMethodSignature-isOneway">isOneway </a></h3> - (BOOL) <b>isOneway</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Pertains to distributed objects; method is asynchronous when invoked and return should not be waited for. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMethodSignature-methodReturnLength">methodReturnLength </a></h3> - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>methodReturnLength</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Number of bytes that the return value occupies on the stack, which is platform(hardware)-dependent. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMethodSignature-methodReturnType">methodReturnType </a></h3> - (const char*) <b>methodReturnType</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns an Objective-C <code>@encode(...)</code> compatible string describing the return type of the method. This may include type qualifiers. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMethodSignature-numberOfArguments">numberOfArguments </a></h3> - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>numberOfArguments</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns number of arguments to method, including the implicit <code><em>self</em></code> and <code><em>_cmd</em></code>. </div> <hr width="25%" align="left" /> </div> <br /> <a href="Base.html">Up</a> </font> </body> </html>