27 #pragma mark Class Constants
37 #define SCCollectionDelegateClass @"SCCollectionDelegate"
41 #pragma mark Protocol SCCollectionDelegate declaration
59 #pragma mark Processing Objects
75 - (void)processObject:(
id)object collection:(
SCCollection *)collection;
78 #pragma mark Handling Collection Errors
99 #pragma mark Adding Objects Events Handlers
115 - (void)collection:(
SCCollection *)collection willAddObject:(
id)object;
129 - (void)collection:(
SCCollection *)collection willInsertObject:(
id)object atIndex:(
SCIndex)index;
143 - (void)collection:(
SCCollection *)collection willSetObject:(
id)object forKey:(NSString *)key;
157 - (void)collection:(
SCCollection *)collection willSetValue:(
id)value forKey:(NSString *)key;
169 - (void)collection:(
SCCollection *)collection didFinishAddingObject:(
id)object;
183 - (void)collection:(
SCCollection *)collection didFinishInsertingObject:(
id)object atIndex:(
SCIndex)index;
197 - (void)collection:(
SCCollection *)collection didFinishSettingObject:(
id)object forKey:(NSString *)key;
211 - (void)collection:(
SCCollection *)collection didFinishSettingValue:(
id)value forKey:(NSString *)key;
214 #pragma mark Removing Objects Events Handlers
228 - (void)willRemoveAllObjectsFromCollection:(
SCCollection *)collection;
240 - (void)collection:(
SCCollection *)collection willRemoveObjectsOfClassName:(NSString *)name;
252 - (void)collection:(
SCCollection *)collection willRemoveObject:(
id)object;
276 - (void)collection:(
SCCollection *)collection willRemoveObjectForKey:(NSString *)key;
286 - (void)didFinishRemovingAllObjectsFromCollection:(
SCCollection *)collection;
298 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectsOfClassName:(NSString *)name;
310 - (void)collection:(
SCCollection *)collection didFinishRemovingObject:(
id)object;
322 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectAtIndex:(
SCIndex)index;
334 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectForKey:(NSString *)key;
337 #pragma mark Sorting Objects Events Handlers
355 - (void)collection:(
SCCollection *)collection willSortAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
369 - (void)collection:(
SCCollection *)collection didFinishSortingAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
372 #pragma mark Replacing Objects Events Handlers
391 - (void)collection:(
SCCollection *)collection willReplaceObjectAtIndex:(
SCIndex)index withObject:(
id)object;
406 - (void)collection:(
SCCollection *)collection willReplaceObjectsInRange:(NSRange)range withCollection:(
id)source;
420 - (void)collection:(
SCCollection *)collection willReplaceObject:(
id)replaced withObject:(
id)object;
435 - (void)collection:(
SCCollection *)collection didFinishReplacingObjectAtIndex:(
SCIndex)index withObject:(
id)object;
451 didFinishReplacingObjectsInRange:(NSRange)range
452 withCollection:(
id)source;
466 - (void)collection:(
SCCollection *)collection didFinishReplacingObject:(
id)replaced withObject:(
id)object;
469 #pragma mark Copying and Moving Objects Events Handlers
488 willExchangeObjectAtIndex:(
SCIndex)index
489 withObjectAtIndex:(
SCIndex)destination;
504 didFinishExchangingObjectAtIndex:(
SCIndex)index
505 withObjectAtIndex:(
SCIndex)destination;
510 #pragma mark Class SCCollectionDelegate declaration
527 #pragma mark Processing Objects
528 - (void)processObject:(
id)object collection:(
SCCollection *)collection;
531 #pragma mark Handling Collection Errors
535 #pragma mark Adding Objects Events Handlers
536 - (void)collection:(
SCCollection *)collection willAddObject:(
id)object;
537 - (void)collection:(
SCCollection *)collection willInsertObject:(
id)object atIndex:(
SCIndex)index;
538 - (void)collection:(
SCCollection *)collection willSetObject:(
id)object forKey:(NSString *)key;
539 - (void)collection:(
SCCollection *)collection willSetValue:(
id)value forKey:(NSString *)key;
540 - (void)collection:(
SCCollection *)collection didFinishAddingObject:(
id)object;
541 - (void)collection:(
SCCollection *)collection didFinishInsertingObject:(
id)object atIndex:(
SCIndex)index;
542 - (void)collection:(
SCCollection *)collection didFinishSettingObject:(
id)object forKey:(NSString *)key;
543 - (void)collection:(
SCCollection *)collection didFinishSettingValue:(
id)value forKey:(NSString *)key;
546 #pragma mark Removing Objects Events Handlers
547 - (void)willRemoveAllObjectsFromCollection:(
SCCollection *)collection;
548 - (void)collection:(
SCCollection *)collection willRemoveObjectsOfClassName:(NSString *)name;
549 - (void)collection:(
SCCollection *)collection willRemoveObject:(
id)object;
551 - (void)collection:(
SCCollection *)collection willRemoveObjectForKey:(NSString *)key;
552 - (void)didFinishRemovingAllObjectsFromCollection:(
SCCollection *)collection;
553 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectsOfClassName:(NSString *)name;
554 - (void)collection:(
SCCollection *)collection didFinishRemovingObject:(
id)object;
555 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectAtIndex:(
SCIndex)index;
556 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectForKey:(NSString *)key;
559 #pragma mark Sorting Objects Events Handlers
560 - (void)collection:(
SCCollection *)collection willSortAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
561 - (void)collection:(
SCCollection *)collection didFinishSortingAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
564 #pragma mark Replacing Objects Events Handlers
565 - (void)collection:(
SCCollection *)collection willReplaceObjectAtIndex:(
SCIndex)index withObject:(
id)object;
566 - (void)collection:(
SCCollection *)collection willReplaceObjectsInRange:(NSRange)range withCollection:(
id)source;
567 - (void)collection:(
SCCollection *)collection willReplaceObject:(
id)replaced withObject:(
id)object;
568 - (void)collection:(
SCCollection *)collection didFinishReplacingObjectAtIndex:(
SCIndex)index withObject:(
id)object;
570 didFinishReplacingObjectsInRange:(NSRange)range
571 withCollection:(
id)source;
572 - (void)collection:(
SCCollection *)collection didFinishReplacingObject:(
id)replaced withObject:(
id)object;
575 #pragma mark Copying and Moving Objects Events Handlers
577 willExchangeObjectAtIndex:(
SCIndex)index
578 withObjectAtIndex:(
SCIndex)destination;
580 didFinishExchangingObjectAtIndex:(
SCIndex)index
581 withObjectAtIndex:(
SCIndex)destination;
Class SCCollectionException header file.
Class SCDelegate header file.
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:136
Protocol and class SCSorter header file.
Parent class of all library delegate classes.
Definition: SCDelegate.h:53
Collections delegate class.
Definition: SCCollectionDelegate.h:55
Collections events handling class.
Definition: SCCollectionDelegate.h:524
Abstract collections class.
Definition: SCCollection.h:101
NSUInteger SCIndex
Definition: SCCollectionProtocols.h:50
Exception class SCCollectionException.
Definition: SCCollectionException.h:336