/Homepwner/Homepwner/BNRItemStore.h
https://bitbucket.org/dhirschl/bnr-3rd-edition · C Header · 34 lines · 20 code · 6 blank · 8 comment · 0 complexity · b5129ac8ff50b2a21fce15df1b7d1d51 MD5 · raw file
- //
- // BNRItemStore.h
- // Homepwner
- //
- // Created by Daniel Hirschlein on 8/30/12.
- // Copyright (c) 2012 Daniel Hirschlein. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import <CoreData/CoreData.h>
- @class BNRItem;
- @interface BNRItemStore : NSObject
- {
- NSMutableArray *allItems;
- NSMutableArray *allAssetTypes;
- NSManagedObjectContext *context;
- NSManagedObjectModel *model;
- }
- // Notice that this is a class method and prefixed with a + instead of a -
- + (BNRItemStore *)sharedStore;
- - (NSArray *)allItems;
- - (BNRItem *)createItem;
- - (void)removeItem:(BNRItem *)p;
- - (void)moveItemAtIndex:(int)from toIndex:(int)to;
- - (NSString *)itemArchivePath;
- - (BOOL)saveChanges;
- - (void)loadAllItems;
- - (NSArray *)allAssetTypes;
- @end