Up
Authors
Gregory John Casamento (greg.casamento@gmail.com
)
Date: Generated at 2025-02-11 22:18:53 +0100
Copyright: (C) 2019 Free Software Foundation, Inc.
class_NSMutableOrderedSet
NSOrderedSet
NSOrderedSet
NSMutableOrderedSet
NSMutableOrderedSet
NSOrderedSet->NSMutableOrderedSet
Declared in:
Foundation/NSOrderedSet.h
Availability: MacOS-X 10.7.0
This class provides a mutable ordered set.
+ (instancetype)
orderedSetWithCapacity: (
NSUInteger )capacity;
Availability: MacOS-X 10.7.0
Returns an ordered set with capacity .
- (void)
addObject: (id)anObject;
Availability: MacOS-X 10.7.0
Adds an object to the receiver.
- (void)
addObjects: (const id[])objects
count: (
NSUInteger )count;
Availability: MacOS-X 10.7.0
Adds items in the C array whose length is indicated by
count to the receiver.
- (void)
addObjectsFromArray: (
NSArray *)otherArray;
Availability: MacOS-X 10.7.0
Adds objects from otherArray to the
receiver.
- (void)
exchangeObjectAtIndex: (
NSUInteger )index
withObjectAtIndex: (
NSUInteger )otherIndex;
Availability: MacOS-X 10.7.0
Exchange object at index with object at
otherIndex .
- (void)
filterUsingPredicate: (
NSPredicate *)predicate;
Availability: MacOS-X 10.7.0
Filter objects using predicate .
- (instancetype)
init ;
Availability: MacOS-X 10.7.0
Initializes an empty ordered set.
- (instancetype)
initWithCapacity: (
NSUInteger )capacity;
Availability: MacOS-X 10.7.0
Initializes an ordered set with
capacity .
- (instancetype)
initWithCoder: (
NSCoder *)coder;
Availability: MacOS-X 10.7.0
Implementation of NSCopying protocol.
- (void)
insertObject: (id)object
atIndex: (
NSUInteger )index;
Availability: MacOS-X 10.7.0
Inserts object into the receiver at
index .
- (void)
insertObjects: (
NSArray *)array
atIndexes: (
NSIndexSet *)indexes;
Availability: MacOS-X 10.7.0
Inserts objects at indexes from
array . The number of elements in
indexes must be the same as the number of
elements in array .
- (void)
intersectOrderedSet: (
NSOrderedSet *)aSet;
Availability: MacOS-X 10.7.0
This method leaves only objects that interesect with
ordered set aSet in the receiver.
- (void)
intersectSet: (
NSSet *)aSet;
Availability: MacOS-X 10.7.0
This method leaves only objects that intersect with
set aSet in the receiver.
- (void)
minusOrderedSet: (
NSOrderedSet *)aSet;
Availability: MacOS-X 10.7.0
Receiver contains itself minus those elements in
ordered set aSet .
- (void)
minusSet: (
NSSet *)aSet;
Availability: MacOS-X 10.7.0
Receiver contains itself minus those elements in
aSet .
- (void)
moveObjectsAtIndexes: (
NSIndexSet *)indexes
toIndex: (
NSUInteger )index;
Availability: MacOS-X 10.7.0
Move objects at indexes to index
.
- (void)
removeAllObjects ;
Availability: MacOS-X 10.7.0
Remove all objects from the set.
- (void)
removeObject: (id)object;
Availability: MacOS-X 10.7.0
Remove object from receiver.
- (void)
removeObjectAtIndex: (
NSUInteger )index;
Availability: MacOS-X 10.7.0
Remove object at index .
- (void)
removeObjectsAtIndexes: (
NSIndexSet *)indexes;
Availability: MacOS-X 10.7.0
Remove objects at indexes .
- (void)
removeObjectsInArray: (
NSArray *)otherArray;
Availability: MacOS-X 10.7.0
Remove objects matching items in
otherArray .
- (void)
removeObjectsInRange: (
NSRange )range;
Availability: MacOS-X 10.7.0
Remove objects at indexes matching range .
- (void)
replaceObjectAtIndex: (
NSUInteger )index
withObject: (id)object;
Availability: MacOS-X 10.7.0
Replace the object at index
with object .
- (void)
replaceObjectsAtIndexes: (
NSIndexSet *)indexes
withObjects: (
NSArray *)objects;
Availability: MacOS-X 10.7.0
Replace objects at indexes
with objects . The number of
objects must correspond to the number of
indexes .
- (void)
replaceObjectsInRange: (
NSRange )range
withObjects: (const id[])objects
count: (
NSUInteger )count;
Availability: MacOS-X 10.7.0
Replace objects in the given
range with items from the C array
objects .
- (void)
setObject: (id)object
atIndex: (
NSUInteger )index;
Availability: MacOS-X 10.7.0
Set object at index .
- (void)
setObject: (id)object
atIndexedSubscript: (
NSUInteger )index;
Availability: MacOS-X 10.7.0
Sets the object at index/
- (void)
sortRange: (
NSRange )range
options: (
NSSortOptions )options
usingComparator: (NSComparator)comparator;
Availability: MacOS-X 10.7.0
Sort the given range using
options and comparator .
- (void)
sortUsingComparator: (NSComparator)comparator;
Availability: MacOS-X 10.7.0
Sort using comparator
- (void)
sortUsingDescriptors: (
NSArray *)descriptors;
Availability: MacOS-X 10.7.0
Sort using descriptors .
- (void)
sortWithOptions: (
NSSortOptions )options
usingComparator: (NSComparator)comparator;
Availability: MacOS-X 10.7.0
Sort with options and comparator
.
- (void)
unionOrderedSet: (
NSOrderedSet *)aSet;
Availability: MacOS-X 10.7.0
Receiver contains the union of itself and ordered
set aSet .
- (void)
unionSet: (
NSSet *)aSet;
Availability: MacOS-X 10.7.0
Receiver contains the union of itself and
aSet .
class_NSOrderedSet
NSObject
NSObject
NSOrderedSet
NSOrderedSet
NSObject->NSOrderedSet
p_NSMutableCopying
NSMutableCopying
p_NSMutableCopying->NSOrderedSet
p_NSFastEnumeration
NSFastEnumeration
p_NSFastEnumeration->NSOrderedSet
p_NSCoding
NSCoding
p_NSCoding->NSOrderedSet
p_NSCopying
NSCopying
p_NSCopying->NSOrderedSet
Declared in:
Foundation/NSOrderedSet.h
Conforms to:
NSCoding
NSCopying
NSFastEnumeration
NSMutableCopying
Availability: MacOS-X 10.7.0
This class provides an ordered set, a set where the
order of the elements matters and is preserved. Once
created the set cannot be modified.
NSMutableOrderedSet can be modified.
+ (instancetype)
orderedSet ;
Availability: MacOS-X 10.7.0
Create and return an empty ordered set.
+ (instancetype)
orderedSetWithArray: (
NSArray *)objects;
Availability: MacOS-X 10.7.0
Create and return an empty ordered set with the
provided NSArray instance.
+ (instancetype)
orderedSetWithArray: (
NSArray *)objects
range: (
NSRange )range
copyItems: (BOOL)flag;
Availability: MacOS-X 10.7.0
Create and return an empty ordered set with the
provided NSArray instance. Use the
range to determine which elements to use.
If flag is YES
copy the
elements.
+ (instancetype)
orderedSetWithObject: (id)anObject;
Availability: MacOS-X 10.7.0
Create and return an ordered set with
anObject as the sole member.
+ (instancetype)
orderedSetWithObjects: (id)firstObject
,... ;
Availability: MacOS-X 10.7.0
Create and return an ordered set with list of
arguments starting with firstObject
and terminated with nil
.
+ (instancetype)
orderedSetWithObjects: (const id[])objects
count: (
NSUInteger )count;
Availability: MacOS-X 10.7.0
Create and return an ordered set using the C array
of objects with count .
+ (instancetype)
orderedSetWithOrderedSet: (
NSOrderedSet *)aSet;
Availability: MacOS-X 10.7.0
Create and return an ordered set with the provided
ordered set aSet .
+ (instancetype)
orderedSetWithSet: (
NSSet *)aSet;
Availability: MacOS-X 10.7.0
Create and return an ordered set with set
aSet .
+ (instancetype)
orderedSetWithSet: (
NSSet *)aSet
copyItems: (BOOL)flag;
Availability: MacOS-X 10.7.0
Create and return an ordered set with the elements
in aSet . If flag is
YES
, copy the elements.
- (
NSArray *)
array ;
Availability: MacOS-X 10.7.0
Returns an NSArray instance with the objects
contained in the receiver.
- (BOOL)
containsObject: (id)anObject;
Availability: MacOS-X 10.7.0
Returns YES
if the receiver contains
anObject .
- (
NSUInteger )
count ;
Availability: MacOS-X 10.7.0
Return the number of elements in the receiver.
- (
NSString *)
description ;
Availability: MacOS-X 10.7.0
Description of this NSOrderedSet.
- (
NSString *)
descriptionWithLocale: (
NSLocale *)locale;
Availability: MacOS-X 10.7.0
Localized description of this NSOrderedSet.
- (
NSString *)
descriptionWithLocale: (
NSLocale *)locale
indent: (BOOL)flag;
Availability: MacOS-X 10.7.0
Localized description, indented if
flag is YES
.
- (void)
enumerateObjectsAtIndexes: (
NSIndexSet *)indexSet
options: (
NSEnumerationOptions )opts
usingBlock: (GSEnumeratorBlock)aBlock;
Availability: MacOS-X 10.7.0
Enumerate over the objects whose indexes are
contained in indexSet , with the
opts provided using aBlock .
- (void)
enumerateObjectsUsingBlock: (GSEnumeratorBlock)aBlock;
Availability: MacOS-X 10.7.0
Enumerate over all objects in the receiver using
aBlock .
- (void)
enumerateObjectsWithOptions: (
NSEnumerationOptions )opts
usingBlock: (GSEnumeratorBlock)aBlock;
Availability: MacOS-X 10.7.0
Enumerate over all objects in the receiver with
aBlock utilizing the options specified by
opts .
- (
NSOrderedSet *)
filteredOrderedSetUsingPredicate: (
NSPredicate *)predicate;
Availability: MacOS-X 10.7.0
Returns an NSOrderedSet instance containing
elements filtered using predicate .
- (id)
firstObject ;
Availability: MacOS-X 10.7.0
First object in the receiver.
- (void)
getObjects: (__unsafe_unretained id[])aBuffer
range: (
NSRange )aRange;
Availability: MacOS-X 10.7.0
Returns a C array of objects in aBuffer
at indexes specified by aRange .
- (
NSUInteger )
indexOfObject: (id)anObject;
Availability: MacOS-X 10.7.0
Returns the index of anObject in the
receiver.
- (
NSUInteger )
indexOfObject: (id)key
inSortedRange: (
NSRange )range
options: (
NSBinarySearchingOptions )options
usingComparator: (NSComparator)comparator;
Availability: MacOS-X 10.7.0
Returns the index of object key ,
contained within range , using
options , and the provided
comparator .
- (
NSUInteger )
indexOfObjectAtIndexes: (
NSIndexSet *)indexSet
options: (
NSEnumerationOptions )opts
passingTest: (GSPredicateBlock)predicate;
Availability: MacOS-X 10.7.0
Returns the index of objects at indexSet
that pass the test in predicate with
enumeration options opts .
- (
NSUInteger )
indexOfObjectPassingTest: (GSPredicateBlock)predicate;
Availability: MacOS-X 10.7.0
Returns the index of the first object passing test
predicate .
- (
NSUInteger )
indexOfObjectWithOptions: (
NSEnumerationOptions )opts
passingTest: (GSPredicateBlock)predicate;
Availability: MacOS-X 10.7.0
Returns the index of the first object passing test
predicate using enumeration options
opts .
- (
NSIndexSet *)
indexesOfObjectsAtIndexes: (
NSIndexSet *)indexSet
options: (
NSEnumerationOptions )opts
passingTest: (GSPredicateBlock)predicate;
Availability: MacOS-X 10.7.0
Returns an NSIndexSet containing indexes of object
at indexes in indexSet matching
predicate with enumeration options
opts .
- (
NSIndexSet *)
indexesOfObjectsPassingTest: (GSPredicateBlock)predicate;
Availability: MacOS-X 10.7.0
Returns an NSIndexSet containing indexes that match
predicate .
- (
NSIndexSet *)
indexesOfObjectsWithOptions: (
NSEnumerationOptions )opts
passingTest: (GSPredicateBlock)predicate;
Availability: MacOS-X 10.7.0
Returns an NSIndexSet containing indexes that match
predicate using opts .
- (instancetype)
init ;
Availability: MacOS-X 10.7.0
Initialize an empty ordered set.
- (instancetype)
initWithArray: (
NSArray *)array;
Availability: MacOS-X 10.7.0
Initialize and return an empty ordered set with
the provided NSArray instance.
- (instancetype)
initWithArray: (
NSArray *)array
copyItems: (BOOL)flag;
Availability: MacOS-X 10.7.0
Initialize and return an empty ordered set with
the provided NSArray instance. If flag is
YES
copy the elements.
- (instancetype)
initWithArray: (
NSArray *)array
range: (
NSRange )range
copyItems: (BOOL)flag;
Availability: MacOS-X 10.7.0
Initialize and return an empty ordered set with
the provided NSArray instance. Use the range
to determine which elements to use. If flag
is YES
copy the elements.
- (instancetype)
initWithObject: (id)object;
Availability: MacOS-X 10.7.0
Initialize and return an ordered set with
anObject as the sole member.
- (instancetype)
initWithObjects: (id)firstObject
,... ;
Availability: MacOS-X 10.7.0
Initialize and return an ordered set with list
of arguments starting with firstObject and
terminated with nil
.
- (instancetype)
initWithObjects: (const id[])objects
count: (
NSUInteger )count;
Availability: MacOS-X 10.7.0
This is a designated initialiser for the class.
Subclasses
must override this method.
Initialize to contain (unique elements of)
objects .
Calls
-init
(which does nothing but maintain MacOS-X
compatibility), and needs to be
re-implemented in subclasses in order to
have all other initialisers work.
- (instancetype)
initWithOrderedSet: (
NSOrderedSet *)aSet;
Availability: MacOS-X 10.7.0
Initialize and return an ordered set using the C
array of objects with count.
- (instancetype)
initWithOrderedSet: (
NSOrderedSet *)aSet
copyItems: (BOOL)flag;
Availability: MacOS-X 10.7.0
Initialize and return an ordered set with the
elements in aSet . If flag is
YES
, copy the elements.
- (instancetype)
initWithOrderedSet: (
NSOrderedSet *)aSet
range: (
NSRange )range
copyItems: (BOOL)flag;
Availability: MacOS-X 10.7.0
Initialize and return an empty ordered set with
the provided NSArray instance. Use the range
to determine which elements to use. If flag
is YES
copy the elements.
- (instancetype)
initWithSet: (
NSSet *)aSet;
Availability: MacOS-X 10.7.0
Initialize and return an ordered set with set
aSet .
- (instancetype)
initWithSet: (
NSSet *)aSet
copyItems: (BOOL)flag;
Availability: MacOS-X 10.7.0
Initialize and return an ordered set with set
aSet . If flag is
YES
, then copy the elements.
- (BOOL)
intersectsOrderedSet: (
NSOrderedSet *)aSet;
Availability: MacOS-X 10.7.0
Returns YES
if the receiver intersects
with ordered set aSet .
- (BOOL)
intersectsSet: (
NSSet *)aSet;
Availability: MacOS-X 10.7.0
Returns YES
if the receiver intersects
with set aSet .
- (BOOL)
isEqualToOrderedSet: (
NSOrderedSet *)aSet;
Availability: MacOS-X 10.7.0
Returns YES
if the receiver is equal
to aSet .
- (BOOL)
isSubsetOfOrderedSet: (
NSOrderedSet *)aSet;
Availability: MacOS-X 10.7.0
Returns YES
if the receiver is a
subset of ordered set aSet .
- (BOOL)
isSubsetOfSet: (
NSSet *)aSet;
Availability: MacOS-X 10.7.0
Returns YES
if the receiver is a
subset of set aSet .
- (id)
lastObject ;
Availability: MacOS-X 10.7.0
Last object in the receiver.
- (id)
objectAtIndex: (
NSUInteger )index;
Availability: MacOS-X 10.7.0
Returns the object at index in the
receiver.
- (id)
objectAtIndexedSubscript: (
NSUInteger )index;
Availability: MacOS-X 10.7.0
Returns the object at index in the
receiver.
- (
NSEnumerator *)
objectEnumerator ;
Availability: MacOS-X 10.7.0
Returns an NSEnumerator to iterate over each object
in the receiver.
- (
NSArray *)
objectsAtIndexes: (
NSIndexSet *)indexes;
Availability: MacOS-X 10.7.0
Returns objects at the indexes specified
in the receiver.
- (
NSEnumerator *)
reverseObjectEnumerator ;
Availability: MacOS-X 10.7.0
Returns an NSEnumerator to iterate over each object
in the receiver in reverse order.
- (
NSOrderedSet *)
reversedOrderedSet ;
Availability: MacOS-X 10.7.0
Returns an NSOrderedSet that contains the same
objects as the receiver, but in reverse order.
- (
NSSet *)
set ;
Availability: MacOS-X 10.7.0
Returns an NSSet instance with the objects
contained in the receiver.
- (void)
setValue: (id)value
forKey: (
NSString *)key;
Availability: MacOS-X 10.7.0
Set value for key .
- (
NSArray *)
sortedArrayUsingComparator: (NSComparator)comparator;
Availability: MacOS-X 10.7.0
Returns an NSArray instance containing the elements
from the receiver sorted using comparator .
- (
NSArray *)
sortedArrayUsingDescriptors: (
NSArray *)sortDescriptors;
Availability: MacOS-X 10.7.0
Returns an NSArray instance containing the elements
from the receiver sorted using
sortDescriptors .
- (
NSArray *)
sortedArrayWithOptions: (
NSSortOptions )options
usingComparator: (NSComparator)comparator;
Availability: MacOS-X 10.7.0
Returns an NSArray instance containing the elements
from the receiver using options , sorted
using comparator .
- (id)
valueForKey: (
NSString *)key;
Availability: MacOS-X 10.7.0
Returns the value for a given key .
Up