22 #import <scl/SCDelegate.h>
23 #import <scl/SCCollectionDelegateProtocol.h>
26 #pragma mark Константы класса
31 #define SCCollectionDelegateClass @"SCCollectionDelegate"
49 #pragma mark Обработка объектов
50 - (void)processObject:(
id)object collection:(
SCCollection *)collection;
53 #pragma mark Обработка ошибок коллекций
57 #pragma mark События добавления объектов
58 - (void)collection:(
SCCollection *)collection willAddObject:(
id)object;
59 - (void)collection:(
SCCollection *)collection willInsertObject:(
id)object atIndex:(
SCIndex)index;
60 - (void)collection:(
SCCollection *)collection willSetObject:(
id)object forKey:(NSString *)key;
61 - (void)collection:(
SCCollection *)collection willSetValue:(
id)value forKey:(NSString *)key;
62 - (void)collection:(
SCCollection *)collection didFinishAddingObject:(
id)object;
63 - (void)collection:(
SCCollection *)collection didFinishInsertingObject:(
id)object atIndex:(
SCIndex)index;
64 - (void)collection:(
SCCollection *)collection didFinishSettingObject:(
id)object forKey:(NSString *)key;
65 - (void)collection:(
SCCollection *)collection didFinishSettingValue:(
id)value forKey:(NSString *)key;
68 #pragma mark События удаления объектов
69 - (void)willRemoveAllObjectsFromCollection:(
SCCollection *)collection;
70 - (void)collection:(
SCCollection *)collection willRemoveObjectsOfClassName:(NSString *)name;
71 - (void)collection:(
SCCollection *)collection willRemoveObject:(
id)object;
73 - (void)collection:(
SCCollection *)collection willRemoveObjectForKey:(NSString *)key;
74 - (void)didFinishRemovingAllObjectsFromCollection:(
SCCollection *)collection;
75 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectsOfClassName:(NSString *)name;
76 - (void)collection:(
SCCollection *)collection didFinishRemovingObject:(
id)object;
77 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectAtIndex:(
SCIndex)index;
78 - (void)collection:(
SCCollection *)collection didFinishRemovingObjectForKey:(NSString *)key;
81 #pragma mark События сортировки объектов
82 - (void)collection:(
SCCollection *)collection willSortAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
83 - (void)collection:(
SCCollection *)collection didFinishSortingAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
86 #pragma mark События замены объектов
87 - (void)collection:(
SCCollection *)collection willReplaceObjectAtIndex:(
SCIndex)index withObject:(
id)object;
88 - (void)collection:(
SCCollection *)collection willReplaceObjectsInRange:(NSRange)range withCollection:(
id)source;
89 - (void)collection:(
SCCollection *)collection willReplaceObject:(
id)replaced withObject:(
id)object;
90 - (void)collection:(
SCCollection *)collection didFinishReplacingObjectAtIndex:(
SCIndex)index withObject:(
id)object;
92 didFinishReplacingObjectsInRange:(NSRange)range
93 withCollection:(
id)source;
94 - (void)collection:(
SCCollection *)collection didFinishReplacingObject:(
id)replaced withObject:(
id)object;
97 #pragma mark События копирования и перемещения объектов
99 willExchangeObjectAtIndex:(
SCIndex)index
100 withObjectAtIndex:(
SCIndex)destination;
102 didFinishExchangingObjectAtIndex:(
SCIndex)index
103 withObjectAtIndex:(
SCIndex)destination;
SCULong SCIndex
Index data type.
Definition: SCTypes.h:240
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:37
Parent class of all library delegate classes.
Definition: SCDelegate.h:46
Collections delegate class.
Definition: SCCollectionDelegateProtocol.h:39
Collections events handling class.
Definition: SCCollectionDelegate.h:46
Abstract collections class.
Definition: SCCollection.h:94
Exception class SCCollectionException.
Definition: SCCollectionException.h:202