home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / FoundationKit / Classes / NSMutableSet.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  5.6 KB  |  100 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 NSMutableSet \
  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 NSSet : 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 an NSMutableSet\
  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.\
  68. \fi-6552 \fi-6552 \i0 \fi-6552 + (id)\b setWithCapacity:\b0 (unsigned int)\i numItems\i0     Creates and returns a set object, giving it enough allocated memory to hold \i numItems\i0  objects.\
  69. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (id)\b initWithCapacity:\b0 (unsigned int)\i numItems\i0     Initializes a newly allocated set object, giving it enough allocated memory to hold \i numItems\i0  objects.\
  70. \fi-6552 \pard \s30 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  71. \
  72. \
  73. \fs28 Adding Objects    \
  74. \fs16 \
  75. \fs28 \pard \s13 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b addObject:\b0 (id)\i anObject\i0     Adds \i anObject\i0  to the set, unless \i anObject \i0 is equal to some object already in the set.\
  76. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b addObjectsFromArray:\b0 (NSArray *)\i array\i0     Adds to the set all the objects in \i array\i0 , by calling \b addObject:\b0  for each one.\
  77. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b unionSet:\b0 (NSSet *)\i anotherSet \i0     Adds to the receiving set all the objects in \i anotherSet\i0 , by calling \b addObject:\b0  for each one.\
  78. \fi-6552 \pard \s30 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  79. \
  80. \
  81. \fs28 Removing Objects\
  82. \fs16 \
  83. \fs28 \pard \s13 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b intersectSet:\b0 (NSSet *)\i anotherSet\i0     Removes from the receiving set every object that\'27s not equal to any object in \i anotherSet\i0 , by calling \b removeObject:\b0  for each one.\
  84. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b minusSet:\b0 (NSSet *)\i anotherSet\i0     Removes from the receiving set every object that\'27s equal to some object in \i anotherSet\i0 , by calling \b removeObject:\b0  for each one.\
  85. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b removeAllObjects\b0     Empties the set of all its elements. (This method doesn\'27t call\b  removeObject:\b0 .)\
  86. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b removeObject:\b0 (id)\i anObject\i0     Removes the object that\'27s equal to \i anObject\i0 , if any is.\
  87. \fi-6552 \fi-6552 \fi-6552 \
  88. \fi-6552 \pard \s2 \li2116 \fi0 \ri1007 \ql \fs28 \li100 \fi2015 \fi0 \tx478 \tx856 \tx1234 \fs16 \
  89. \
  90. \fs28 \
  91. \fs16 \
  92. \
  93. \fs28 \li2116 \fi-2015 \fi0 \li100 \fi2015 \fi0 \tx478 \tx856 \tx1234 \fs16 \fs28 \
  94. \fs16 \
  95. \
  96. \fs28 \li2116 \fi-2015 \fi0 \li100 \fi2015 \fi0 \tx478 \tx856 \tx1234 \fs16 \fs28 \
  97. \fs16 \
  98. \
  99. \fs28 }
  100.