Samond Classes Library 1.2.6-STABLE build 219
NSMutableArray+SCMutableArray.h
Go to the documentation of this file.
1 //
2 // NSMutableArray+SCMutableArray.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 13.05.12.
6 // Copyright (c) 2007 - 2018 by Samond Development Corporation. All rights reserved.
7 //
8 
24 #import <Foundation/Foundation.h>
25 #import <scl/NSArray+SCArray.h>
26 
27 #pragma mark -
28 #pragma mark Class Constants
29 
38 #define NSMutableArrayClass @"NSMutableArray"
39 
40 
55 
56 #pragma mark -
57 #pragma mark Copying Arrays
58 - (void)setCollection:(id<SCCollection>)collection;
59 - (void)setObject:(id<SCCollectioning>)object;
60 - (void)setObjects:(id<SCCollectioning>)object, ... NS_REQUIRES_NIL_TERMINATION;
61 - (void)setAscendingSortedCollection:(id<SCCollection>)collection sorter:(id<SCSorter>)sorter;
62 - (void)setDescendingSortedCollection:(id<SCCollection>)collection sorter:(id<SCSorter>)sorter;
63 - (void)setSortedCollection:(id<SCCollection>)collection sorter:(id<SCSorter>)sorter;
64 - (void)setAscendingSortedCollection:(id<SCCollection>)collection;
65 - (void)setDescendingSortedCollection:(id<SCCollection>)collection;
66 - (void)setSortedCollection:(id<SCCollection>)collection;
67 
68 #pragma mark -
69 #pragma mark Adding Objects
70 - (void)addObjects:(id<SCCollectioning>)object, ... NS_REQUIRES_NIL_TERMINATION;
71 - (void)addCollection:(id<SCCollection>)collection;
72 - (void)addArray:(NSArray *)array;
73 
74 #pragma mark -
75 #pragma mark Removing Objects
76 - (void)removeObjectsWithClass:(Class)oclass;
77 - (void)removeObjectsWithClassName:(NSString *)name;
78 - (void)removeCollection:(id<SCCollection>)collection;
79 - (void)removeObjects:(id<SCCollectioning>)object, ... NS_REQUIRES_NIL_TERMINATION;
80 
81 #pragma mark -
82 #pragma mark Replacing Objects
83 - (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withCollection:(id<SCCollection>)collection;
84 - (void)replaceObjectsInRange:(NSRange)range withObjects:(id<SCCollectioning>)object, ... NS_REQUIRES_NIL_TERMINATION;
85 - (void)replaceObjectsInRange:(NSRange)range withCollection:(id<SCCollection>)collection;
86 
87 #pragma mark -
88 #pragma mark Sorting Arrays
89 - (void)sortAscendingWithSorter:(id<SCSorter>)sorter;
90 - (void)sortDescendingWithSorter:(id<SCSorter>)sorter;
91 - (void)sortWithSorter:(id<SCSorter>)sorter;
92 - (void)sortAscending;
93 - (void)sortDescending;
94 - (void)sort;
95 
96 #pragma mark -
97 #pragma mark Additional Methods
98 - (void)copyObjectAtIndex:(SCIndex)index toIndex:(SCIndex)destination;
99 - (void)moveObjectAtIndex:(SCIndex)index toIndex:(SCIndex)destination;
100 - (void)reverse;
101 
102 @end
void sort()
Definition: NSMutableArray+SCMutableArray.m:519
void sortDescending()
Definition: NSMutableArray+SCMutableArray.m:505
Mutable collections protocol.
Definition: SCCollectionProtocols.h:597
Mutable indexed collection protocol.
Definition: SCCollectionProtocols.h:887
Caregory NSArray(SCArray) header file.
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:138
Collections communications protocol.
Definition: SCCollectioning.h:79
Abstract collections class.
Definition: SCCollection.h:98
void reverse()
Definition: NSMutableArray+SCMutableArray.m:572
NSUInteger SCIndex
Definition: SCCollectionProtocols.h:53
void sortAscending()
Definition: NSMutableArray+SCMutableArray.m:493
Standard class NSMutableArray functionality extending category.
Definition: NSMutableArray+SCMutableArray.h:54