forked from objcio/issue-4-full-core-data-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathItem.h
27 lines (20 loc) · 695 Bytes
/
Item.h
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
//
// Item.h
// NestedTodoList
//
// Created by Chris Eidhof on 8/14/13.
// Copyright (c) 2013 Chris Eidhof. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@class Item;
@interface Item : NSManagedObject
@property (nonatomic, retain) NSString* title;
@property (nonatomic, assign) NSNumber* order;
@property (nonatomic, retain) Item* parent;
@property (nonatomic, retain) NSSet* children;
+ (instancetype)insertItemWithTitle:(NSString*)title
parent:(Item*)parent
inManagedObjectContext:(NSManagedObjectContext*)managedObjectContext;
- (NSFetchedResultsController*)childrenFetchedResultsController;
@end