Permalink
Browse files

Migrate table controller codebase into standalone project

  • Loading branch information...
blakewatters committed Aug 28, 2012
1 parent 806aaea commit c69f0118cd07e6010264391318a8749129c6736a
Showing with 0 additions and 5,894 deletions.
  1. +0 −26 Code/Support/NSBundle+RKAdditions.h
  2. +0 −29 Code/Support/NSBundle+RKAdditions.m
  3. +0 −456 Code/UI/RKAbstractTableController.h
  4. +0 −1,446 Code/UI/RKAbstractTableController.m
  5. +0 −78 Code/UI/RKAbstractTableController_Internals.h
  6. +0 −68 Code/UI/RKFetchedResultsTableController.h
  7. +0 −709 Code/UI/RKFetchedResultsTableController.m
  8. +0 −57 Code/UI/RKKeyboardScroller.h
  9. +0 −148 Code/UI/RKKeyboardScroller.m
  10. +0 −60 Code/UI/RKObjectManager+RKTableController.h
  11. +0 −50 Code/UI/RKObjectManager+RKTableController.m
  12. +0 −43 Code/UI/RKRefreshGestureRecognizer.h
  13. +0 −243 Code/UI/RKRefreshGestureRecognizer.m
  14. +0 −42 Code/UI/RKRefreshTriggerView.h
  15. +0 −196 Code/UI/RKRefreshTriggerView.m
  16. +0 −15 Code/UI/RKTableCellBlockTypes.h
  17. +0 −155 Code/UI/RKTableController.h
  18. +0 −520 Code/UI/RKTableController.m
  19. +0 −156 Code/UI/RKTableItem.h
  20. +0 −158 Code/UI/RKTableItem.m
  21. +0 −59 Code/UI/RKTableSection.h
  22. +0 −173 Code/UI/RKTableSection.m
  23. +0 −235 Code/UI/RKTableViewCellMapping.h
  24. +0 −295 Code/UI/RKTableViewCellMapping.m
  25. +0 −33 Code/UI/RKTableViewCellMappings.h
  26. +0 −79 Code/UI/RKTableViewCellMappings.m
  27. +0 −33 Code/UI/UI.h
  28. +0 −42 Code/UI/UIImage+RKAdditions.h
  29. +0 −38 Code/UI/UIImage+RKAdditions.m
  30. +0 −27 Code/UI/UIView+FindFirstResponder.h
  31. +0 −41 Code/UI/UIView+FindFirstResponder.m
  32. BIN Resources/RKRefreshTriggerViewAssets/blackArrow.png
  33. BIN Resources/RKRefreshTriggerViewAssets/blackArrow@2x.png
  34. BIN Resources/RKRefreshTriggerViewAssets/blueArrow.png
  35. BIN Resources/RKRefreshTriggerViewAssets/blueArrow@2x.png
  36. BIN Resources/RKRefreshTriggerViewAssets/grayArrow.png
  37. BIN Resources/RKRefreshTriggerViewAssets/grayArrow@2x.png
  38. BIN Resources/RKRefreshTriggerViewAssets/whiteArrow.png
  39. BIN Resources/RKRefreshTriggerViewAssets/whiteArrow@2x.png
  40. +0 −124 RestKit.xcodeproj/project.pbxproj
  41. +0 −60 RestKitResources.bundle/Contents/Info.plist
  42. BIN RestKitResources.bundle/Contents/Resources/blackArrow.png
  43. BIN RestKitResources.bundle/Contents/Resources/blackArrow@2x.png
  44. BIN RestKitResources.bundle/Contents/Resources/blueArrow.png
  45. BIN RestKitResources.bundle/Contents/Resources/blueArrow@2x.png
  46. BIN RestKitResources.bundle/Contents/Resources/grayArrow.png
  47. BIN RestKitResources.bundle/Contents/Resources/grayArrow@2x.png
  48. BIN RestKitResources.bundle/Contents/Resources/whiteArrow.png
  49. BIN RestKitResources.bundle/Contents/Resources/whiteArrow@2x.png
@@ -20,27 +20,12 @@
#import <Foundation/Foundation.h>
-#if TARGET_OS_IPHONE
-#import <UIKit/UIImage.h>
-#endif
-
/**
Provides convenience methods for accessing data in resources
within an NSBundle.
*/
@interface NSBundle (RKAdditions)
-/**
- Returns an NSBundle reference to the RestKitResources.bundle file containing
- RestKit specific resource assets.
-
- This method is a convenience wrapper for invoking
- `[NSBundle bundleWithIdentifier:@"org.restkit.RestKitResources"]`
-
- @return An NSBundle object corresponding to the RestKitResources.bundle file.
- */
-+ (NSBundle *)restKitResourcesBundle;
-
/**
Returns the MIME Type for the resource identified by the specified name and file extension.
@@ -69,17 +54,6 @@
*/
- (NSString *)stringWithContentsOfResource:(NSString *)name withExtension:(NSString *)extension encoding:(NSStringEncoding)encoding;
-#if TARGET_OS_IPHONE
-/**
- Creates and returns an image object by loading the image data from the resource identified by the specified name and file extension.
-
- @param name The name of the resource file.
- @param extension If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.
- @return A new image object for the specified file, or nil if the method could not initialize the image from the specified file.
- */
-- (UIImage *)imageWithContentsOfResource:(NSString *)name withExtension:(NSString *)extension;
-#endif
-
/**
Creates and returns an object representation of the data from the resource identified by the specified name and file extension by reading the
data as a string and parsing it using a parser appropriate for the MIME Type of the file.
@@ -20,28 +20,12 @@
#import "NSBundle+RKAdditions.h"
#import "NSString+RKAdditions.h"
-#import "UIImage+RKAdditions.h"
#import "RKLog.h"
#import "RKParser.h"
#import "RKParserRegistry.h"
@implementation NSBundle (RKAdditions)
-+ (NSBundle *)restKitResourcesBundle
-{
- static BOOL searchedForBundle = NO;
-
- if (! searchedForBundle) {
- NSString *path = [[NSBundle mainBundle] pathForResource:@"RestKitResources" ofType:@"bundle"];
- searchedForBundle = YES;
- NSBundle *resourcesBundle = [NSBundle bundleWithPath:path];
- if (! resourcesBundle) RKLogWarning(@"Unable to find RestKitResources.bundle in your project. Did you forget to add it?");
- return resourcesBundle;
- }
-
- return [NSBundle bundleWithIdentifier:@"org.restkit.RestKitResources"];
-}
-
- (NSString *)MIMETypeForResource:(NSString *)name withExtension:(NSString *)extension
{
NSString *resourcePath = [self pathForResource:name ofType:extension];
@@ -80,19 +64,6 @@ - (NSString *)stringWithContentsOfResource:(NSString *)name withExtension:(NSStr
return fixtureData;
}
-#if TARGET_OS_IPHONE
-- (UIImage *)imageWithContentsOfResource:(NSString *)name withExtension:(NSString *)extension
-{
- NSString *resourcePath = [self pathForResource:name ofType:extension];
- if (! resourcePath) {
- RKLogWarning(@"%@ Failed to locate Resource with name '%@' and extension '%@': File Not Found.", self, resourcePath, extension);
- return nil;
- }
-
- return [UIImage imageWithContentsOfResolutionIndependentFile:resourcePath];
-}
-#endif
-
- (id)parsedObjectWithContentsOfResource:(NSString *)name withExtension:(NSString *)extension
{
NSError *error = nil;
Oops, something went wrong.

0 comments on commit c69f011

Please sign in to comment.