NSString+RACSupport.h 608 B

12345678910111213141516171819202122
  1. //
  2. // NSString+RACSupport.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Josh Abernathy on 5/11/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class RACSignal;
  10. @class RACScheduler;
  11. @interface NSString (RACSupport)
  12. // Reads in the contents of the file using +[NSString stringWithContentsOfURL:usedEncoding:error:].
  13. // Note that encoding won't be valid until the signal completes successfully.
  14. //
  15. // scheduler - cannot be nil.
  16. + (RACSignal *)rac_readContentsOfURL:(NSURL *)URL usedEncoding:(NSStringEncoding *)encoding scheduler:(RACScheduler *)scheduler;
  17. @end