SFSDKSafeMutableArray Class Reference

Inherits from NSObject
Declared in SFSDKSafeMutableArray.h

  count

The number of elements in this array.

@property (nonatomic, readonly) NSUInteger count

Declared In

SFSDKSafeMutableArray.h

– mutableCopyWithZone:

Returns a new instance that’s a mutable copy of the receiver.

- (id)mutableCopyWithZone:(NSZone *)zone

Declared In

SFSDKSafeMutableArray.h

– containsObject:

Returns true if the object exists in the array.

- (BOOL)containsObject:(id)anObject

Declared In

SFSDKSafeMutableArray.h

– objectAtIndexedSubscript:

Returns the object at the specified index.

- (id)objectAtIndexedSubscript:(NSUInteger)idx

Declared In

SFSDKSafeMutableArray.h

– objectAtIndexed:

Returns the object at the specified index.

- (id)objectAtIndexed:(NSUInteger)idx

Declared In

SFSDKSafeMutableArray.h

– asArray

Get a NSArray from the mutable array

- (NSArray *)asArray

Declared In

SFSDKSafeMutableArray.h

– enumerateObjectsUsingBlock:

Enumerate objects in the array safely, using a block.

- (void)enumerateObjectsUsingBlock:(void ( ^ ) ( id obj , NSUInteger idx , BOOL *stop ))block

Declared In

SFSDKSafeMutableArray.h

– addObject:

Inserts a given object at the end of the array.

- (void)addObject:(id)obj

Declared In

SFSDKSafeMutableArray.h

– addObjectsFromArray:

Adds the objects contained in another given array to the end of the receiving array’s content.

- (void)addObjectsFromArray:(NSArray *)array

Declared In

SFSDKSafeMutableArray.h

– insertObject:atIndex:

Inserts a given object into the array’s contents at a given index.

- (void)insertObject:(id)obj atIndex:(NSUInteger)index

Declared In

SFSDKSafeMutableArray.h

– insertObjects:atIndexes:

Inserts the objects in the provided array into the receiving array at the specified indexes.

- (void)insertObjects:(id)obj atIndexes:(NSIndexSet *)indexes

Declared In

SFSDKSafeMutableArray.h

– removeAllObjects

Removes all objects from the array.

- (void)removeAllObjects

Declared In

SFSDKSafeMutableArray.h

– removeLastObject

Removes the object with the highest-valued index in the array

- (void)removeLastObject

Declared In

SFSDKSafeMutableArray.h

– removeObject:

Removes all occurrences in the array of a given object.

- (void)removeObject:(id)object

Declared In

SFSDKSafeMutableArray.h

– removeObjectAtIndex:

Removes the object at index.

- (void)removeObjectAtIndex:(NSUInteger)index

Declared In

SFSDKSafeMutableArray.h

– removeObjectsAtIndexes:

Removes the objects at the specified indexes from the array.

- (void)removeObjectsAtIndexes:(NSIndexSet *)indexes

Declared In

SFSDKSafeMutableArray.h

– removeObjectIdenticalTo:

Removes all occurrences of a given object in the array.

- (void)removeObjectIdenticalTo:(id)object

Declared In

SFSDKSafeMutableArray.h

– removeObjectIdenticalTo:inRange:

Removes all occurrences of anObject within the specified range in the array.

- (void)removeObjectIdenticalTo:(id)object inRange:(NSRange)range

Declared In

SFSDKSafeMutableArray.h

– removeObject:inRange:

Removes all occurrences within a specified range in the array of a given object.

- (void)removeObject:(id)object inRange:(NSRange)range

Declared In

SFSDKSafeMutableArray.h

– removeObjectsInArray:

Removes from the receiving array the objects in another given array.

- (void)removeObjectsInArray:(NSArray *)otherArray

Declared In

SFSDKSafeMutableArray.h

– removeObjectsInRange:

Removes from the array each of the objects within a given range.

- (void)removeObjectsInRange:(NSRange)range

Declared In

SFSDKSafeMutableArray.h

– setObject:atIndexedSubscript:

Replaces the object at the index with the new object, possibly adding the object..

- (void)setObject:(id)object atIndexedSubscript:(NSUInteger)index

Declared In

SFSDKSafeMutableArray.h

– setArray:

Empties the receiving set, then adds each object contained in another given array.

- (void)setArray:(NSArray *)otherArray

Declared In

SFSDKSafeMutableArray.h

– filterUsingPredicate:

Filter the array using a predicate.

- (void)filterUsingPredicate:(NSPredicate *)predicate

Declared In

SFSDKSafeMutableArray.h

+ array

A convenience method to allocate and initialize a new instance of a SFSDKSafeMutableArray.

+ (id)array

Return Value

A new SFSDKSafeMutableArray instance.

Declared In

SFSDKSafeMutableArray.h

+ arrayWithCapacity:

A convenience method to allocate and initialize a new instance of a SFSDKSafeMutableArrayWithCapacity.

+ (id)arrayWithCapacity:(NSUInteger)numItems

Return Value

A new SFSDKSafeMutableArray instance.

Declared In

SFSDKSafeMutableArray.h