Samond Classes Library 1.2.1-RELEASE build 181
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 - 2017 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 
33 #define NSMutableArrayClass @"NSMutableArray"
34 
35 
49 
50 #pragma mark -
51 #pragma mark Copying Arrays
52 - (void)setCollection:(id<SCCollection>)collection;
53 - (void)setObject:(id<SCCollectioning>)object;
54 - (void)setObjects:(id<SCCollectioning>)object, ... NS_REQUIRES_NIL_TERMINATION;
55 - (void)setAscendingSortedCollection:(id<SCCollection>)collection sorter:(id<SCSorter>)sorter;
56 - (void)setDescendingSortedCollection:(id<SCCollection>)collection sorter:(id<SCSorter>)sorter;
57 - (void)setSortedCollection:(id<SCCollection>)collection sorter:(id<SCSorter>)sorter;
58 - (void)setAscendingSortedCollection:(id<SCCollection>)collection;
59 - (void)setDescendingSortedCollection:(id<SCCollection>)collection;
60 - (void)setSortedCollection:(id<SCCollection>)collection;
61 
62 #pragma mark -
63 #pragma mark Adding Objects
64 - (void)addObjects:(id<SCCollectioning>)object, ... NS_REQUIRES_NIL_TERMINATION;
65 - (void)addCollection:(id<SCCollection>)collection;
66 
67 #pragma mark -
68 #pragma mark Removing Objects
69 - (void)removeObjectsWithClass:(Class)oclass;
70 - (void)removeObjectsWithClassName:(NSString *)name;
71 - (void)removeCollection:(id<SCCollection>)collection;
72 - (void)removeObjects:(id<SCCollectioning>)object, ... NS_REQUIRES_NIL_TERMINATION;
73 
74 #pragma mark -
75 #pragma mark Replacing Objects
76 - (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withCollection:(id<SCCollection>)collection;
77 - (void)replaceObjectsInRange:(NSRange)range withObjects:(id<SCCollectioning>)object, ... NS_REQUIRES_NIL_TERMINATION;
78 - (void)replaceObjectsInRange:(NSRange)range withCollection:(id<SCCollection>)collection;
79 
80 #pragma mark -
81 #pragma mark Sorting Arrays
82 - (void)sortAscendingWithSorter:(id<SCSorter>)sorter;
83 - (void)sortDescendingWithSorter:(id<SCSorter>)sorter;
84 - (void)sortWithSorter:(id<SCSorter>)sorter;
85 - (void)sortAscending;
86 - (void)sortDescending;
87 - (void)sort;
88 
89 #pragma mark -
90 #pragma mark Additional Methods
91 - (void)copyObjectAtIndex:(SCIndex)index toIndex:(SCIndex)destination;
92 - (void)moveObjectAtIndex:(SCIndex)index toIndex:(SCIndex)destination;
93 - (void)reverse;
94 
95 @end
void sort()
Definition: NSMutableArray+SCMutableArray.m:628
void sortDescending()
Definition: NSMutableArray+SCMutableArray.m:614
Mutable collections protocol.
Definition: SCCollectionProtocols.h:743
Mutable indexed collection protocol.
Definition: SCCollectionProtocols.h:1029
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:130
NSUInteger SCIndex
Definition: SCTypes.h:238
Collections communications protocol.
Definition: SCCollectioning.h:80
Abstract collections class.
Definition: SCCollection.h:94
void reverse()
Definition: NSMutableArray+SCMutableArray.m:681
void sortAscending()
Definition: NSMutableArray+SCMutableArray.m:602
Standard class NSMutableArray functionality extending category.
Definition: NSMutableArray+SCMutableArray.h:48