22 #import <Foundation/Foundation.h>
29 #pragma mark Class Constants
39 #define SCCollectionDelegateClass @"SCCollectionDelegate"
43 #pragma mark Protocol SCCollectionDelegate declaration
61 #pragma mark Processing Objects
77 - (void)processObject:(
id)object collection:(
SCCollection *)collection;
80 #pragma mark Handling Collection Errors
101 #pragma mark Adding Objects Events Handlers
117 - (void)collection:(
SCCollection *)collection willAddObject:(
id)object;
131 - (void)collection:(
SCCollection *)collection willInsertObject:(
id)object atIndex:(
SCIndex)index;
145 - (void)collection:(
SCCollection *)collection willSetObject:(
id)object forKey:(NSString *)key;
159 - (void)collection:(
SCCollection *)collection willSetValue:(
id)value forKey:(NSString *)key;
171 - (void)collection:(
SCCollection *)collection didFinishAddingObject:(
id)object;
185 - (void)collection:(
SCCollection *)collection didFinishInsertingObject:(
id)object atIndex:(
SCIndex)index;
199 - (void)collection:(
SCCollection *)collection didFinishSettingObject:(
id)object forKey:(NSString *)key;
213 - (void)collection:(
SCCollection *)collection didFinishSettingValue:(
id)value forKey:(NSString *)key;
216 #pragma mark Removing Objects Events Handlers
230 - (void)willRemoveAllObjectsFromCollection:(
SCCollection *)collection;
242 - (void)collection:(
SCCollection *)collection willRemoveObjectsOfClassName:(NSString *)name;
254 - (void)collection:(
SCCollection *)collection willRemoveObject:(
id)object;
278 - (void)collection:(
SCCollection *)collection willRemoveObjectForKey:(NSString *)key;
288 - (void)didFinishRemovingAllObjectsFromCollection:(
SCCollection *)collection;
300 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectsOfClassName:(NSString *)name;
312 - (void)collection:(
SCCollection *)collection didFinishRemovingObject:(
id)object;
324 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectAtIndex:(
SCIndex)index;
336 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectForKey:(NSString *)key;
339 #pragma mark Sorting Objects Events Handlers
357 - (void)collection:(
SCCollection *)collection willSortAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
371 - (void)collection:(
SCCollection *)collection didFinishSortingAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
374 #pragma mark Replacing Objects Events Handlers
393 - (void)collection:(
SCCollection *)collection willReplaceObjectAtIndex:(
SCIndex)index withObject:(
id)object;
408 - (void)collection:(
SCCollection *)collection willReplaceObjectsInRange:(NSRange)range withCollection:(
id)source;
422 - (void)collection:(
SCCollection *)collection willReplaceObject:(
id)replaced withObject:(
id)object;
437 - (void)collection:(
SCCollection *)collection didFinishReplacingObjectAtIndex:(
SCIndex)index withObject:(
id)object;
453 didFinishReplacingObjectsInRange:(NSRange)range
454 withCollection:(
id)source;
468 - (void)collection:(
SCCollection *)collection didFinishReplacingObject:(
id)replaced withObject:(
id)object;
471 #pragma mark Copying and Moving Objects Events Handlers
490 willExchangeObjectAtIndex:(
SCIndex)index
491 withObjectAtIndex:(
SCIndex)destination;
506 didFinishExchangingObjectAtIndex:(
SCIndex)index
507 withObjectAtIndex:(
SCIndex)destination;
512 #pragma mark Class SCCollectionDelegate declaration
529 #pragma mark Processing Objects
530 - (void)processObject:(
id)object collection:(
SCCollection *)collection;
533 #pragma mark Handling Collection Errors
537 #pragma mark Adding Objects Events Handlers
538 - (void)collection:(
SCCollection *)collection willAddObject:(
id)object;
539 - (void)collection:(
SCCollection *)collection willInsertObject:(
id)object atIndex:(
SCIndex)index;
540 - (void)collection:(
SCCollection *)collection willSetObject:(
id)object forKey:(NSString *)key;
541 - (void)collection:(
SCCollection *)collection willSetValue:(
id)value forKey:(NSString *)key;
542 - (void)collection:(
SCCollection *)collection didFinishAddingObject:(
id)object;
543 - (void)collection:(
SCCollection *)collection didFinishInsertingObject:(
id)object atIndex:(
SCIndex)index;
544 - (void)collection:(
SCCollection *)collection didFinishSettingObject:(
id)object forKey:(NSString *)key;
545 - (void)collection:(
SCCollection *)collection didFinishSettingValue:(
id)value forKey:(NSString *)key;
548 #pragma mark Removing Objects Events Handlers
549 - (void)willRemoveAllObjectsFromCollection:(
SCCollection *)collection;
550 - (void)collection:(
SCCollection *)collection willRemoveObjectsOfClassName:(NSString *)name;
551 - (void)collection:(
SCCollection *)collection willRemoveObject:(
id)object;
553 - (void)collection:(
SCCollection *)collection willRemoveObjectForKey:(NSString *)key;
554 - (void)didFinishRemovingAllObjectsFromCollection:(
SCCollection *)collection;
555 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectsOfClassName:(NSString *)name;
556 - (void)collection:(
SCCollection *)collection didFinishRemovingObject:(
id)object;
557 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectAtIndex:(
SCIndex)index;
558 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectForKey:(NSString *)key;
561 #pragma mark Sorting Objects Events Handlers
562 - (void)collection:(
SCCollection *)collection willSortAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
563 - (void)collection:(
SCCollection *)collection didFinishSortingAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
566 #pragma mark Replacing Objects Events Handlers
567 - (void)collection:(
SCCollection *)collection willReplaceObjectAtIndex:(
SCIndex)index withObject:(
id)object;
568 - (void)collection:(
SCCollection *)collection willReplaceObjectsInRange:(NSRange)range withCollection:(
id)source;
569 - (void)collection:(
SCCollection *)collection willReplaceObject:(
id)replaced withObject:(
id)object;
570 - (void)collection:(
SCCollection *)collection didFinishReplacingObjectAtIndex:(
SCIndex)index withObject:(
id)object;
572 didFinishReplacingObjectsInRange:(NSRange)range
573 withCollection:(
id)source;
574 - (void)collection:(
SCCollection *)collection didFinishReplacingObject:(
id)replaced withObject:(
id)object;
577 #pragma mark Copying and Moving Objects Events Handlers
579 willExchangeObjectAtIndex:(
SCIndex)index
580 withObjectAtIndex:(
SCIndex)destination;
582 didFinishExchangingObjectAtIndex:(
SCIndex)index
583 withObjectAtIndex:(
SCIndex)destination;
Class SCCollectionException header file.
Class SCDelegate header file.
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:138
Protocol and class SCSorter header file.
Parent class of all library delegate classes.
Definition: SCDelegate.h:54
Collections delegate class.
Definition: SCCollectionDelegate.h:57
Collections events handling class.
Definition: SCCollectionDelegate.h:526
Abstract collections class.
Definition: SCCollection.h:98
Class SCCollection header file.
NSUInteger SCIndex
Definition: SCCollectionProtocols.h:53
Exception class SCCollectionException.
Definition: SCCollectionException.h:337