home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / FoundationKit / Classes / NSSet.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  8.2 KB  |  126 lines

  1. {\rtf0\ansi\paperw16228 \paperh18648 \margl-907 \margr0 \margt0 \margb0 {\fonttbl\f0\fswiss Helvetica;\f1\froman Times;\f2\fmodern Courier;\f3\ftech Symbol;\f4\froman Palatino;}
  2. {\stylesheet{\s0 \li100 \fi0 \ri1007 \ql   1Head;}
  3. {\s1 \li1360 \fi0 \ri1007 \ql   AdoptedProtocols;}
  4. {\s2 \li2116 \fi0 \ri1007 \ql \tx2494 \tx2872 \tx3250   Body;}
  5. {\s3 \li2494 \fi0 \ri1007 \ql \tx2872 \tx3250 \tx3642   BodyIndented;}
  6. {\s4 \li2494 \fi-378 \ri1007 \ql \tx2494 \tx2872 \tx3250   BulletLong;}
  7. {\s5 \li2494 \fi-378 \ri1007 \ql   BulletShort;}
  8. {\s6 \li1360 \fi0 \ri1007 \ql   ClassDescription;}
  9. {\s7 \li1360 \fi0 \ri1007 \ql   ClassMethods;}
  10. {\s8 \li100 \fi0 \ri1007 \ql   ClassName;}
  11. {\s9 \li2494 \fi0 \ri1007 \ql \tx3124 \tx3628 \tx4132 \tx4636 \tx5140 \tx5644 \tx6148 \tx6652 \tx7156 \tx7660 \tx8164 \tx8668 \tx9172 \tx9676 \tx10180 \tx10684   CodeExamp;}
  12. {\s10 \li2872 \fi0 \ri1007 \ql \tx3376 \tx3880 \tx4384 \tx4888 \tx5392 \tx5896 \tx6400 \tx6904 \tx7408 \tx7912 \tx8416 \tx8920 \tx9424 \tx9928 \tx10432   CodeExamp2;}
  13. {\s11 \li2872 \fi-2771 \ri1007 \ql \tx2872   ConformsTo;}
  14. {\s12 \li2872 \fi-2771 \ri1007 \ql   DeclaredIn;}
  15. {\s13 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030   Description;}
  16. {\s14 \li7030 \fi-5796 \ri1007 \ql   DescriptionPart;}
  17. {\s15 \li6148 \fi-4031 \ri1007 \ql \tx6148 \tx9676 \tx10180   FirstVar/TypeLine1;}
  18. {\s16 \li0 \fi0 \ri0 \ql \tx-25 \tx8290 \tx9172   Footer;}
  19. {\s17 \li1360 \fi0 \ri1007 \ql   Heading;}
  20. {\s18 \li2872 \fi-2771 \ri1007 \ql \tx2872   InheritsFrom;}
  21. {\s19 \li1360 \fi0 \ri1007 \ql   InstanceMethods;}
  22. {\s20 \li2116 \fi0 \ri1007 \ql \tx2872   InstanceVar;}
  23. {\s21 \li1360 \fi0 \ri1007 \ql   InstanceVarHead;}
  24. {\s22 \li3250 \fi-756 \ri1007 \ql   MethodDesc;}
  25. {\s23 \li2494 \fi-378 \ri1007 \ql \tx7156   MethodHead;}
  26. {\s24 \li2494 \fi-378 \ri1007 \ql   MethodHeadFirst;}
  27. {\s25 \li1360 \fi0 \ri1007 \ql   MethodsImp...;}
  28. {\s26 \li1360 \fi0 \ri1007 \ql   MethodTypes;}
  29. {\s27 \li2116 \fi0 \ri1007 \ql   Note;}
  30. {\s28 \li2116 \fi0 \ri1007 \ql \tx2494 \tx2872 \tx3250   SeeAlso;}
  31. {\s29 \li2116 \fi0 \ri1007 \ql   SubHeading;}
  32. {\s30 \li100 \fi0 \ri1007 \ql   Summary;}
  33. {\s31 \li2494 \fi0 \ri1007 \ql \tx6148 \tx10180   TableBody1;}
  34. {\s32 \li6148 \fi-3654 \ri1007 \ql \tx6148 \tx10432   TableBody2;}
  35. {\s33 \li2494 \fi0 \ri1007 \ql \tx6148 \tx10180   TableHead;}
  36. {\s34 \li6652 \fi-503 \ri1007 \ql \tx9676 \tx10180   Var/Type;}
  37. {\s35 \li6148 \fi-4031 \ri1007 \ql \tx6148 \tx9676 \tx10180   Var/TypeLine1;}
  38. {\s36 \li2116 \fi-2015 \ri1007 \ql \tx806 \tx2116   Warning;}
  39. }
  40. \li0 \fi0 \ri0 \ql \sb0 \f1 \fs24 
  41. (Preliminary Documentation) Copyright \f3 \'e3\f1 1994 by NeXT Computer, Inc.  All Rights Reserved.\
  42. \
  43. \pard \s0 \li100 \fi0 \ri1007 \ql \f0 \b \fs36 \fs16 \
  44. \
  45. \
  46. \
  47. \
  48. \
  49. \
  50. \fs36 NSSet \
  51. \pard \s18 \li2872 \fi-2771 \ri1007 \ql \tx2872 \f1 \b0 \fs28 \fs16 \
  52. \
  53. \
  54. \fs28 \f0 \b \fs28 Inherits From:    \b0 \fs28 \f1 NSObject \
  55. \fs16 \
  56. \fs28 \s11 \fs16 \fs28 \f0 \b \fs28 Conforms To:    \b0 \fs28 \f1 NSCopying\
  57. \fi0 NSCoding\
  58. \fi0 NSMutableCopying\
  59. \fi0 NSObject \
  60. \fs16 \
  61. \fs28 \s12 \fi-2771 \fs16 \fs28 \f0 \b \fs28 Declared In:    \b0 \fs28 \f1 foundation/NSSet.h \
  62. \fs16 \
  63. \fs28 \pard \s30 \li100 \fi0 \ri1007 \ql \f0 \b \fs28 \fs16 \
  64. \
  65. \fs28 Allocating and Initializing a Set\
  66. \fs16 \
  67. \fs28 \pard \s13 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 + (id)\b allocWithZone:\b0 (NSZone *)\i zone\i0     Creates and returns an uninitialized set object in \i zone\i0 .\
  68. \fi-6552 \fi-6552 \fi-6552 + (id)\b set\b0     Creates and returns an empty set object.\
  69. \fi-6552 \fi-6552 \fi-6552 + (id)\b setWithArray:\b0 (NSArray *)\i array\i0     Creates and returns a set object containing the objects in \i array\i0 .\
  70. \fi-6552 \fi-6552 \fi-6552 + (id)\b setWithObject:\b0 (id)\i anObject\i0     Creates and returns a set object containing the single element \i anObject.\
  71. \fi-6552 \fi-6552 \i0 \fi-6552 + (id)\b setWithObjects:\b0 (id)\i firstObj,...\i0     Creates and returns a set object containing the objects in the argument list. The object list is comma-separated and ends with \b nil\b0 .\
  72. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (id)\b initWithArray:\b0 (NSArray *)\i array\i0     Initializes a newly allocated set object by placing in it the objects contained in \i array.\
  73. \fi-6552 \fi-6552 \i0 \fi-6552 {\f3 -} (id)\b initWithObjects:\b0 (id)\i firstObj,...\i0     Initializes a newly allocated set object by placing in it the objects in the argument list.  The object list is comma-separated and ends with \b nil\b0 .\
  74. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (id)\b initWithObjects:\b0 (id *)\i objects\i0     Initializes a newly allocated set object by placing in \
  75. \fi-6552 \s14 \li7030 \fi-6553 \fi-5796 \b count:\b0 (unsigned int)\i count\i0         it \i count\i0  objects from the \i objects\i0  array.\
  76. \s13 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (id)\b initWithSet:\b0 (NSSet *)\i anotherSet\i0     Initializes a newly allocated set object by placing in it the objects contained in \i anotherSet.\
  77. \fi-6552 \fi-6552 \i0 \fi-6552 {\f3 -} (id)\b initWithSet:\b0 (NSSet *)\i set\i0     Initializes a newly allocated set object by placing in it the\
  78. \fi-6552 \s14 \li7030 \fi-6553 \fi-5796 \b copyItems:\b0 (BOOL)\i flag\i0         objects contained in \i anotherSet\i0  (or immutable copies of them, if \i flag \i0 is YES).\
  79. \pard \s30 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  80. \
  81. \
  82. \fs28 Querying the Set\
  83. \fs16 \
  84. \fs28 \pard \s13 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSArray *)\b allObjects\b0     Returns an array containing all the objects in the set.\
  85. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (id)\b anyObject\b0     Returns some object in the set, or \b nil\b0  if the set is empty.\
  86. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (unsigned int)\b count\b0     Returns the number of objects currently in the set.\
  87. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (id)\b member:\b0 (id)\i anObject\i0     Return the object in the set that is equal to \i anObject\i0 , or \b nil\b0  if none is equal.\
  88. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSEnumerator *)\b objectEnumerator\b0     Returns an enumerator object that lets you access each object in the set.\
  89. \fi-6552 \pard \s30 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  90. \
  91. \
  92. \fs28  Sending Messages to Elements of the Set\
  93. \fs16 \
  94. \fs28 \pard \s13 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b makeObjectsPerform:\b0 (SEL)\i aSelector\i0     Sends an \i aSelector\i0  message to each object in the set.\
  95. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b makeObjectsPerform:\b0 (SEL)\i aSelector\i0     Sends an \i aSelector\i0  message to each object in the\
  96. \fi-6552 \s14 \li7030 \fi-6553 \fi-5796 \b withObject:\b0 (id)\i anObject\i0         set, with \i anObject\i0  as an argument.\
  97. \pard \s30 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  98. \
  99. \
  100. \fs28 Comparing Sets\
  101. \fs16 \
  102. \fs28 \pard \s13 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (BOOL)\b intersectsSet:\b0 (NSSet *)\i otherSet\i0     Returns YES if there\'27s any object in the receiving set that\'27s equal to an object in \i otherSet\i0 .\
  103. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (BOOL)\b isEqualToSet:\b0 (NSSet *)\i otherSet\i0     Returns YES if every object in the receiving set is equal to an object in \i otherSet\i0 , and the two sets contain the same number of objects.\
  104. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (BOOL)\b isSubsetOfSet:\b0 (NSSet *)\i otherSet\i0     Returns YES if every object in the receiving set is equal to an object in \i otherSet\i0 , and the receiving set contains no more objects than \i otherSet\i0  does.\
  105. \fi-6552 \pard \s30 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  106. \
  107. \
  108. \fs28 Creating a String Description of the Set\
  109. \fs16 \
  110. \fs28 \pard \s13 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSString *)\b description\b0     Returns a string object that describes the contents of the receiver.\
  111. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSString *)\b descriptionWithLocale:\b0 (NSDictionary *)\i localeDictionary\
  112. \fi-6552 \s14 \li7030 \fi-6553 \fi-5796 \i0     Returns a string representation of the NSSet object, including the keys and values that represent the locale data from \i localeDictionary\i0 .\
  113. \s13 \li7029 \fi-5794 \fi-6552 \fi-6552 \
  114. \fi-6552 \pard \s2 \li2116 \fi0 \ri1007 \ql \fs28 \li100 \fi2015 \fi0 \tx478 \tx856 \tx1234 \fs16 \
  115. \
  116. \fs28 \
  117. \fs16 \
  118. \
  119. \fs28 \li2116 \fi-2015 \fi0 \li100 \fi2015 \fi0 \tx478 \tx856 \tx1234 \fs16 \fs28 \
  120. \fs16 \
  121. \
  122. \fs28 \li2116 \fi-2015 \fi0 \li100 \fi2015 \fi0 \tx478 \tx856 \tx1234 \fs16 \fs28 \
  123. \fs16 \
  124. \
  125. \fs28 }
  126.