-
Notifications
You must be signed in to change notification settings - Fork 0
/
DNCoreDataControllerDelegate.h
executable file
·49 lines (36 loc) · 1.6 KB
/
DNCoreDataControllerDelegate.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// *********************************************************************************************************************
// Module Name: DNCoreDataControllerDelegate.h
// Description: Protocol definition.
// Author Name: David F. Negrete
// *********************************************************************************************************************
@class DNCoreDataController;
/// Methods required by a Core Data Controller to setup the stack.
@protocol DNCoreDataControllerDelegate <NSObject>
@required
/** Specify the URL to the Data Model for the given controller object.
* @param coreData The Core Data Controller object.
* @return An URL object.
*/
- (NSURL*) coreDataModelURL:(DNCoreDataController*)coreData;
/** Specify the Core Data Store type for the given controller object.
* @param coreData The Core Data Controller object.
* @return A String object.
*/
- (NSString*) coreDataStoreType:(DNCoreDataController*)coreData;
@optional
/** Specify the Core Data Store name of persistent file.
* @param coreData The Core Data Controller object.
* @return A String object.
*/
- (NSString*) coreDataStoreName:(DNCoreDataController*)coreData;
/** Specify the URL to the directory in which the store will be persisted.
* @param coreData The Core Data Controller object.
* @return An URL object.
*/
- (NSURL*) coreDataStoreDirectory:(DNCoreDataController*)coreData;
/** Specify the URL to the Core Data Store for the given controller object.
* @param coreData The Core Data Controller object.
* @return An URL object.
*/
- (NSString*) coreDataStoreExtension:(DNCoreDataController*)coreData;
@end