YYTextArchiver.h 918 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // YYTextArchiver.h
  3. // YYKit <https://github.com/ibireme/YYKit>
  4. //
  5. // Created by ibireme on 15/3/16.
  6. // Copyright (c) 2015 ibireme.
  7. //
  8. // This source code is licensed under the MIT-style license found in the
  9. // LICENSE file in the root directory of this source tree.
  10. //
  11. #import <UIKit/UIKit.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. /**
  14. A subclass of `NSKeyedArchiver` which implement `NSKeyedArchiverDelegate` protocol.
  15. The archiver can encode the object which contains
  16. CGColor/CGImage/CTRunDelegateRef/.. (such as NSAttributedString).
  17. */
  18. @interface YYTextArchiver : NSKeyedArchiver <NSKeyedArchiverDelegate>
  19. @end
  20. /**
  21. A subclass of `NSKeyedUnarchiver` which implement `NSKeyedUnarchiverDelegate`
  22. protocol. The unarchiver can decode the data which is encoded by
  23. `YYTextArchiver` or `NSKeyedArchiver`.
  24. */
  25. @interface YYTextUnarchiver : NSKeyedUnarchiver <NSKeyedUnarchiverDelegate>
  26. @end
  27. NS_ASSUME_NONNULL_END