Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 46 lines (37 sloc) 1.493 kb
b3a1eda @soffes Add SSManagedViewController and SSManagedTableViewController
soffes authored
1 //
2 // SSManagedViewController.h
3 // SSDataKit
4 //
5 // Created by Sam Soffes on 4/7/12.
6 // Copyright (c) 2012 Sam Soffes. All rights reserved.
7 //
8
4cd76c8 @soffes Don't assume a header prefix
soffes authored
9 #import <Foundation/Foundation.h>
10 #import <CoreData/CoreData.h>
b3a1eda @soffes Add SSManagedViewController and SSManagedTableViewController
soffes authored
11 #import <UIKit/UIKit.h>
12
13 @class SSManagedObject;
14
15 @interface SSManagedViewController : UIViewController <NSFetchedResultsControllerDelegate>
16
17 @property (nonatomic, strong) SSManagedObject *managedObject;
18 @property (nonatomic, strong) NSFetchedResultsController *fetchedResultsController;
318a9e9 @soffes Add property to ignore change
soffes authored
19 @property (nonatomic, assign) BOOL ignoreChange;
9cf8121 @soffes Disable animated placeholder changes for now
soffes authored
20 @property (nonatomic, assign, getter=isLoading) BOOL loading;
ad18e88 @soffes More placeholder view progress
soffes authored
21 @property (nonatomic, strong) UIView *noContentView;
22 @property (nonatomic, strong) UIView *loadingView;
b3a1eda @soffes Add SSManagedViewController and SSManagedTableViewController
soffes authored
23
7cba2f5 @soffes Add the ability to customize the fetched results controller class
soffes authored
24 + (Class)fetchedResultsControllerClass;
b3a1eda @soffes Add SSManagedViewController and SSManagedTableViewController
soffes authored
25 - (NSFetchRequest *)fetchRequest;
cc459d2 @soffes Add entityClass to SSManagedViewController and automatic FRC creation
soffes authored
26 - (Class)entityClass;
b3a1eda @soffes Add SSManagedViewController and SSManagedTableViewController
soffes authored
27 - (NSArray *)sortDescriptors;
28 - (NSPredicate *)predicate;
29 - (NSManagedObjectContext *)managedObjectContext;
30 - (NSString *)sectionNameKeyPath;
31 - (NSString *)cacheName;
32
6796acd @soffes Add index path transation and fix date parsing
soffes authored
33 - (NSIndexPath *)viewIndexPathForFetchedIndexPath:(NSIndexPath *)fetchedIndexPath;
34 - (NSIndexPath *)fetchedIndexPathForViewIndexPath:(NSIndexPath *)viewIndexPath;
35 - (id)objectForViewIndexPath:(NSIndexPath *)indexPath;
36
ad18e88 @soffes More placeholder view progress
soffes authored
37 - (void)setLoading:(BOOL)loading animated:(BOOL)animated;
38 - (BOOL)hasContent;
39 - (void)updatePlaceholderViews:(BOOL)animated;
40 - (void)showLoadingView:(BOOL)animated;
41 - (void)hideLoadingView:(BOOL)animated;
42 - (void)showNoContentView:(BOOL)animated;
43 - (void)hideNoContentView:(BOOL)animated;
44
b3a1eda @soffes Add SSManagedViewController and SSManagedTableViewController
soffes authored
45 @end
Something went wrong with that request. Please try again.