![]() 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>NSEnumerator class reference</title> </head> <body> <font face="serif"> <a href="Base.html">Up</a> <br /> <h1><a name="title$NSEnumerator">NSEnumerator 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) 1995, 1996 Free Software Foundation, Inc.</p> <div> <hr width="50%" align="left" /> <h3>Contents -</h3> <ol> <li> <a href="#001000000000">Software documentation for the NSEnumerator class</a> </li> <li> <a href="#002000000000">Software documentation for the NSFastEnumeration protocol</a> </li> </ol> <hr width="50%" align="left" /> </div> <h1><a name="001000000000"> Software documentation for the NSEnumerator class </a></h1> <h2><a name="class$NSEnumerator">NSEnumerator</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSEnumerator.h</dd> </dl> </blockquote> <blockquote> <dl> <dt><b>Conforms to:</b></dt> <dd><a rel="gsdoc" href="#protocol$(NSFastEnumeration)">NSFastEnumeration</a></dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Simple class for iterating over a collection of objects, usually returned from an <a rel="gsdoc" href="NSArray.html#class$NSArray">NSArray</a> or similar. </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSEnumerator.html#method$NSEnumerator-allObjects">-allObjects</a></li> <li><a rel="gsdoc" href="NSEnumerator.html#method$NSEnumerator-nextObject">-nextObject</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSEnumerator-allObjects">allObjects </a></h3> - (GS_GENERIC_CLASS(NSArray,IterT)*) <b>allObjects</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns all objects remaining in the enumeration as an array. <br /> Calling this method 'exhausts' the enumerator, leaving it at the end of the collection being enumerated. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSEnumerator-nextObject">nextObject </a></h3> - (GS_GENERIC_TYPE(IterT)) <b>nextObject</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns next object in enumeration, or <code>nil</code> if none remain. Use code like <code> while (object = [enumerator nextObject]) {...} </code> . </div> <hr width="25%" align="left" /> </div> <h1><a name="002000000000"> Software documentation for the NSFastEnumeration protocol </a></h1> <h2><a name="protocol$(NSFastEnumeration)">NSFastEnumeration</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSEnumerator.h</dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSEnumerator.html#method$(NSFastEnumeration)-countByEnumeratingWithState$objects$count$">-countByEnumeratingWithState:objects:count:</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$(NSFastEnumeration)-countByEnumeratingWithState$objects$count$">countByEnumeratingWithState: objects: count: </a></h3> - (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>countByEnumeratingWithState:</b> (NSFastEnumerationState*)state<b> objects:</b> (__unsafe_unretained id[])stackbuf<b> count:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)len;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <br /> <a href="Base.html">Up</a> </font> </body> </html>