22 #import <Foundation/Foundation.h>
28 #pragma mark Class Constants
38 #define SCTextDelegateClass @"SCTextDelegate"
46 #pragma mark Protocol SCTextDelegate Declaration
64 #pragma mark Processing Strings
80 - (void)processString:(NSString *)string text:(
SCStrings *)text;
83 #pragma mark Handling Text Errors
104 #pragma mark Adding Strings Events Handlers
122 - (void)text:(
SCStrings *)text willAddString:(NSString *)string;
136 - (void)text:(
SCStrings *)text willInsertString:(NSString *)string atIndex:(
SCIndex)index;
148 - (void)text:(
SCStrings *)text didFinishAddingString:(NSString *)string;
162 - (void)text:(
SCStrings *)text didFinishInsertingString:(NSString *)string atIndex:(
SCIndex)index;
165 #pragma mark Removing Strings Events Handlers
179 - (void)willRemoveAllStringsFromText:(
SCStrings *)text;
203 - (void)text:(
SCStrings *)text willRemoveString:(NSString *)string;
215 - (void)text:(
SCText *)text willRemoveTextInRange:(NSRange)range;
227 - (void)text:(
SCText *)text willRemoveSubstring:(NSString *)substring;
249 - (void)didFinishRemovingAllStringsFromText:(
SCStrings *)text;
261 - (void)text:(
SCStrings *)text didFinishRemovingStringAtIndex:(
SCIndex)index;
273 - (void)text:(
SCStrings *)text didFinishRemovingString:(NSString *)string;
285 - (void)text:(
SCText *)text didFinishRemovingTextInRange:(NSRange)range;
297 - (void)text:(
SCText *)text didFinishRemovingSubstring:(NSString *)substring;
309 - (void)text:(
SCText *)text didFinishRemovingText:(
SCStrings *)removedText;
312 #pragma mark Strings Events Handlers
330 - (void)text:(
SCStrings *)text willSortAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
344 - (void)text:(
SCStrings *)text didFinishSortingAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
347 #pragma mark Replacing Strings Events Handlers
365 - (void)text:(
SCStrings *)text willReplaceStringAtIndex:(
SCIndex)index withString:(NSString *)string;
379 - (void)text:(
SCStrings *)text willReplaceString:(NSString *)string withString:(NSString *)newString;
394 - (void)text:(
SCText *)text willReplaceTextInRange:(NSRange)range withText:(
SCStrings *)ntext;
422 - (void)text:(
SCStrings *)text didFinishReplacingStringAtIndex:(
SCIndex)index withString:(NSString *)string;
436 - (void)text:(
SCStrings *)text didFinishReplacingString:(NSString *)string withString:(NSString *)newString;
451 - (void)text:(
SCText *)text didFinishReplacingTextInRange:(NSRange)range withText:(
SCStrings *)ntext;
468 #pragma mark Copying and Moving Strings Events Handlers
486 - (void)text:(
SCStrings *)text willExchangeStringAtIndex:(
SCIndex)index withStringAtIndex:(
SCIndex)destination;
508 - (void)willDuplicateText:(
SCStrings *)text;
523 - (void)text:(
SCText *)text willExchangeTextInRange:(NSRange)source withTextInRange:(NSRange)destination;
537 - (void)text:(
SCStrings *)text didFinishExchangingStringAtIndex:(
SCIndex)index withStringAtIndex:(
SCIndex)destination;
549 - (void)text:(
SCStrings *)text didFinishDuplicatingStringAtIndex:(
SCIndex)index;
559 - (void)didFinishDuplicatingText:(
SCStrings *)text;
574 - (void)text:(
SCText *)text didFinishExchangingTextInRange:(NSRange)source withTextInRange:(NSRange)destination;
577 #pragma mark Reading and Writing Files Events Handlers
605 - (void)text:(
SCTextFile *)text willReadWithPath:(NSString *)path;
629 - (void)text:(
SCTextFile *)text willWriteWithPath:(NSString *)path;
663 - (void)text:(
SCTextFile *)text didFinishReadingWithPath:(NSString *)path;
687 - (void)text:(
SCTextFile *)text didFinishWritingWithPath:(NSString *)path;
697 - (void)didFinishResettingText:(
SCTextFile *)text;
702 #pragma mark Class SCTextDelegate Declaration
719 #pragma mark Processing Strings
720 - (void)processString:(NSString *)string text:(
SCStrings *)text;
723 #pragma mark Handling Text Errors
727 #pragma mark Adding Strings Events Handlers
728 - (void)text:(
SCStrings *)text willAddString:(NSString *)string;
729 - (void)text:(
SCStrings *)text willInsertString:(NSString *)string atIndex:(
SCIndex)index;
730 - (void)text:(
SCStrings *)text didFinishAddingString:(NSString *)string;
731 - (void)text:(
SCStrings *)text didFinishInsertingString:(NSString *)string atIndex:(
SCIndex)index;
734 #pragma mark Removing Strings Events Handlers
735 - (void)willRemoveAllStringsFromText:(
SCStrings *)text;
737 - (void)text:(
SCStrings *)text willRemoveString:(NSString *)string;
738 - (void)text:(
SCText *)text willRemoveTextInRange:(NSRange)range;
739 - (void)text:(
SCText *)text willRemoveSubstring:(NSString *)substring;
741 - (void)didFinishRemovingAllStringsFromText:(
SCStrings *)text;
742 - (void)text:(
SCStrings *)text didFinishRemovingStringAtIndex:(
SCIndex)index;
743 - (void)text:(
SCStrings *)text didFinishRemovingString:(NSString *)string;
744 - (void)text:(
SCText *)text didFinishRemovingTextInRange:(NSRange)range;
745 - (void)text:(
SCText *)text didFinishRemovingSubstring:(NSString *)substring;
746 - (void)text:(
SCText *)text didFinishRemovingText:(
SCStrings *)removedText;
749 #pragma mark Sorting Strings Events Handlers
750 - (void)text:(
SCStrings *)text willSortAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
751 - (void)text:(
SCStrings *)text didFinishSortingAscending:(BOOL)ascending sorter:(
id<
SCSorter>)sorter;
754 #pragma mark Replacing Strings Events Handlers
755 - (void)text:(
SCStrings *)text willReplaceStringAtIndex:(
SCIndex)index withString:(NSString *)string;
756 - (void)text:(
SCStrings *)text willReplaceString:(NSString *)string withString:(NSString *)newString;
757 - (void)text:(
SCText *)text willReplaceTextInRange:(NSRange)range withText:(
SCStrings *)ntext;
759 - (void)text:(
SCStrings *)text didFinishReplacingStringAtIndex:(
SCIndex)index withString:(NSString *)string;
760 - (void)text:(
SCStrings *)text didFinishReplacingString:(NSString *)string withString:(NSString *)newString;
761 - (void)text:(
SCText *)text didFinishReplacingTextInRange:(NSRange)range withText:(
SCStrings *)ntext;
765 #pragma mark Copying and Moving Strings Events Handlers
766 - (void)text:(
SCStrings *)text willExchangeStringAtIndex:(
SCIndex)index withStringAtIndex:(
SCIndex)destination;
768 - (void)willDuplicateText:(
SCStrings *)text;
769 - (void)text:(
SCText *)text willExchangeTextInRange:(NSRange)source withTextInRange:(NSRange)destination;
770 - (void)text:(
SCStrings *)text didFinishExchangingStringAtIndex:(
SCIndex)index withStringAtIndex:(
SCIndex)destination;
771 - (void)text:(
SCStrings *)text didFinishDuplicatingStringAtIndex:(
SCIndex)index;
772 - (void)didFinishDuplicatingText:(
SCStrings *)text;
773 - (void)text:(
SCText *)text didFinishExchangingTextInRange:(NSRange)source withTextInRange:(NSRange)destination;
776 #pragma mark Reading and Writing Files Events Handlers
778 - (void)text:(
SCTextFile *)text willReadWithPath:(NSString *)path;
780 - (void)text:(
SCTextFile *)text willWriteWithPath:(NSString *)path;
783 - (void)text:(
SCTextFile *)text didFinishReadingWithPath:(NSString *)path;
785 - (void)text:(
SCTextFile *)text didFinishWritingWithPath:(NSString *)path;
786 - (void)didFinishResettingText:(
SCTextFile *)text;
Text class.
Definition: SCText.h:77
Strings list class.
Definition: SCStrings.h:74
Class SCDelegate header file.
Class SCTextException header file.
Abstract implementation of the protocol SCSorter.
Definition: SCSorter.h:138
Protocol and class SCSorter header file.
Text object event handlers class.
Definition: SCTextDelegate.h:716
Parent class of all library delegate classes.
Definition: SCDelegate.h:54
Text file class.
Definition: SCTextFile.h:88
Text objects delegate protocol.
Definition: SCTextDelegate.h:61
Exception class SCTextException.
Definition: SCTextException.h:336
NSUInteger SCIndex
Definition: SCCollectionProtocols.h:53
Abstract parent class of the stream classes hierarchy.
Definition: SCStream.h:224