-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathItem.h
More file actions
30 lines (21 loc) · 660 Bytes
/
Copy pathItem.h
File metadata and controls
30 lines (21 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// Item.h
// ArrayDiffExample
//
// Created by Nick Tymchenko on 13/04/14.
// Copyright (c) 2014 Nick Tymchenko. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface Item : NSManagedObject
@property (nonatomic, retain) NSString *name;
@property (nonatomic, readonly) NSString *sectionTitle;
+ (NSManagedObjectContext *)managedObjectContext;
+ (NSFetchRequest *)requestForSortedItems;
+ (void)setupItemsWithNames:(NSArray *)names;
+ (void)addRandomItem;
+ (void)updateRandomItems;
+ (void)deleteRandomItem;
+ (Item *)existingItemWithName:(NSString *)name;
+ (NSArray *)fetchSortedItemSections;
@end