Skip to content

Commit 81027e0

Browse files
author
Christian Kienle
authored
Merge pull request #42 from ChristianKienle/develop
Develop
2 parents ecf66a4 + 5196715 commit 81027e0

24 files changed

+534
-985
lines changed

Core Data Editor/Core Data Editor.xcodeproj/project.pbxproj

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
AB3B07C91775FCE2000855B0 /* CDEBoolValueTableCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = AB3B07C81775FCE2000855B0 /* CDEBoolValueTableCellView.m */; };
6565
AB3B07CB1775FCF2000855B0 /* CDEBoolValueTableCellView.xib in Resources */ = {isa = PBXBuildFile; fileRef = AB3B07CA1775FCF2000855B0 /* CDEBoolValueTableCellView.xib */; };
6666
AB3B07CE17760E23000855B0 /* NSTableCellView+JKNibLoading.m in Sources */ = {isa = PBXBuildFile; fileRef = AB3B07CD17760E23000855B0 /* NSTableCellView+JKNibLoading.m */; };
67+
AB4068FA1DE1C5DE001F83E9 /* FilteringArray.m in Sources */ = {isa = PBXBuildFile; fileRef = AB4068F91DE1C5DE001F83E9 /* FilteringArray.m */; };
6768
AB531222179953B300529EF7 /* NSTableColumn+CDERequestDataCoordinator.m in Sources */ = {isa = PBXBuildFile; fileRef = AB531221179953B300529EF7 /* NSTableColumn+CDERequestDataCoordinator.m */; };
6869
AB5583A5176751AE005C002C /* icon.iconset in Resources */ = {isa = PBXBuildFile; fileRef = AB5583A4176751AE005C002C /* icon.iconset */; };
6970
AB59DA401DDF42AA00A19963 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AB59DA3F1DDF42AA00A19963 /* Main.storyboard */; };
@@ -99,7 +100,6 @@
99100
ABBEA7ED1765CB730024A9D2 /* CDEDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA7EC1765CB730024A9D2 /* CDEDocument.m */; };
100101
ABBEA7F01765CB730024A9D2 /* CDEDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = ABBEA7EE1765CB730024A9D2 /* CDEDocument.xib */; };
101102
ABBEA7F31765CB730024A9D2 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = ABBEA7F11765CB730024A9D2 /* MainMenu.xib */; };
102-
ABBEA7F61765CB730024A9D2 /* CDEDocument.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA7F41765CB730024A9D2 /* CDEDocument.xcdatamodeld */; };
103103
ABBEA8241765D5AC0024A9D2 /* CDEPathActionLabelController.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA7FE1765D5AA0024A9D2 /* CDEPathActionLabelController.m */; };
104104
ABBEA8251765D5AC0024A9D2 /* CDENewConfigurationSummaryViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA8001765D5AA0024A9D2 /* CDENewConfigurationSummaryViewController.m */; };
105105
ABBEA8261765D5AC0024A9D2 /* CDENewConfigurationSummaryViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = ABBEA8011765D5AA0024A9D2 /* CDENewConfigurationSummaryViewController.xib */; };
@@ -121,7 +121,6 @@
121121
ABBEA8951765F3320024A9D2 /* NSBundle+CDEApplicationAnalyzer.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA8941765F3320024A9D2 /* NSBundle+CDEApplicationAnalyzer.m */; };
122122
ABBEA8A01765FC230024A9D2 /* NSURL+CDEApplicationAnalyzer.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA89F1765FC230024A9D2 /* NSURL+CDEApplicationAnalyzer.m */; };
123123
ABBEA8A4176602B60024A9D2 /* NSString+CDEPersistentStore.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA8A3176602B60024A9D2 /* NSString+CDEPersistentStore.m */; };
124-
ABBEA8B517660AB30024A9D2 /* _CDEConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA8B217660AB30024A9D2 /* _CDEConfiguration.m */; };
125124
ABBEA8B617660AB30024A9D2 /* CDEConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA8B417660AB30024A9D2 /* CDEConfiguration.m */; };
126125
ABBEA8BB1766153A0024A9D2 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = ABBEA8B91766153A0024A9D2 /* Localizable.strings */; };
127126
ABBEA8D41766212A0024A9D2 /* NSPasteboard-CDEAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = ABBEA8D31766212A0024A9D2 /* NSPasteboard-CDEAdditions.m */; };
@@ -318,6 +317,8 @@
318317
AB3B07CA1775FCF2000855B0 /* CDEBoolValueTableCellView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = CDEBoolValueTableCellView.xib; sourceTree = "<group>"; };
319318
AB3B07CC17760E22000855B0 /* NSTableCellView+JKNibLoading.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTableCellView+JKNibLoading.h"; sourceTree = "<group>"; };
320319
AB3B07CD17760E23000855B0 /* NSTableCellView+JKNibLoading.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSTableCellView+JKNibLoading.m"; sourceTree = "<group>"; };
320+
AB4068F81DE1C5DE001F83E9 /* FilteringArray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FilteringArray.h; sourceTree = "<group>"; };
321+
AB4068F91DE1C5DE001F83E9 /* FilteringArray.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FilteringArray.m; sourceTree = "<group>"; };
321322
AB531220179953B300529EF7 /* NSTableColumn+CDERequestDataCoordinator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSTableColumn+CDERequestDataCoordinator.h"; sourceTree = "<group>"; };
322323
AB531221179953B300529EF7 /* NSTableColumn+CDERequestDataCoordinator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSTableColumn+CDERequestDataCoordinator.m"; sourceTree = "<group>"; };
323324
AB5583A4176751AE005C002C /* icon.iconset */ = {isa = PBXFileReference; lastKnownFileType = folder.iconset; path = icon.iconset; sourceTree = "<group>"; };
@@ -378,7 +379,6 @@
378379
ABBEA7EC1765CB730024A9D2 /* CDEDocument.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CDEDocument.m; sourceTree = "<group>"; };
379380
ABBEA7EF1765CB730024A9D2 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/CDEDocument.xib; sourceTree = "<group>"; };
380381
ABBEA7F21765CB730024A9D2 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
381-
ABBEA7F51765CB730024A9D2 /* CDEDocument.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = CDEDocument.xcdatamodel; sourceTree = "<group>"; };
382382
ABBEA7FD1765D5AA0024A9D2 /* CDEPathActionLabelController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDEPathActionLabelController.h; sourceTree = "<group>"; };
383383
ABBEA7FE1765D5AA0024A9D2 /* CDEPathActionLabelController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDEPathActionLabelController.m; sourceTree = "<group>"; };
384384
ABBEA7FF1765D5AA0024A9D2 /* CDENewConfigurationSummaryViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDENewConfigurationSummaryViewController.h; sourceTree = "<group>"; };
@@ -421,8 +421,6 @@
421421
ABBEA89F1765FC230024A9D2 /* NSURL+CDEApplicationAnalyzer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSURL+CDEApplicationAnalyzer.m"; sourceTree = "<group>"; };
422422
ABBEA8A2176602B60024A9D2 /* NSString+CDEPersistentStore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSString+CDEPersistentStore.h"; sourceTree = "<group>"; };
423423
ABBEA8A3176602B60024A9D2 /* NSString+CDEPersistentStore.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString+CDEPersistentStore.m"; sourceTree = "<group>"; };
424-
ABBEA8B117660AB30024A9D2 /* _CDEConfiguration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = _CDEConfiguration.h; sourceTree = "<group>"; };
425-
ABBEA8B217660AB30024A9D2 /* _CDEConfiguration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _CDEConfiguration.m; sourceTree = "<group>"; };
426424
ABBEA8B317660AB30024A9D2 /* CDEConfiguration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDEConfiguration.h; sourceTree = "<group>"; };
427425
ABBEA8B417660AB30024A9D2 /* CDEConfiguration.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDEConfiguration.m; sourceTree = "<group>"; };
428426
ABBEA8BA1766153A0024A9D2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
@@ -840,6 +838,8 @@
840838
children = (
841839
AB15E73F177B690B00FA113E /* CDEEntityRequestDataCoordinator.h */,
842840
AB15E740177B690B00FA113E /* CDEEntityRequestDataCoordinator.m */,
841+
AB4068F81DE1C5DE001F83E9 /* FilteringArray.h */,
842+
AB4068F91DE1C5DE001F83E9 /* FilteringArray.m */,
843843
);
844844
name = "Entity Coordinator";
845845
sourceTree = "<group>";
@@ -1223,7 +1223,6 @@
12231223
ABBEA7EE1765CB730024A9D2 /* CDEDocument.xib */,
12241224
ABBEA7F11765CB730024A9D2 /* MainMenu.xib */,
12251225
AB59DA3F1DDF42AA00A19963 /* Main.storyboard */,
1226-
ABBEA7F41765CB730024A9D2 /* CDEDocument.xcdatamodeld */,
12271226
ABBEA7E01765CB730024A9D2 /* Supporting Files */,
12281227
);
12291228
path = "Core Data Editor";
@@ -1439,20 +1438,10 @@
14391438
AB23E43C17A6C1F5001C19A7 /* Autosave Information */,
14401439
ABBEA8B317660AB30024A9D2 /* CDEConfiguration.h */,
14411440
ABBEA8B417660AB30024A9D2 /* CDEConfiguration.m */,
1442-
ABBEA8B717660FC00024A9D2 /* Machine */,
14431441
);
14441442
name = Model;
14451443
sourceTree = "<group>";
14461444
};
1447-
ABBEA8B717660FC00024A9D2 /* Machine */ = {
1448-
isa = PBXGroup;
1449-
children = (
1450-
ABBEA8B117660AB30024A9D2 /* _CDEConfiguration.h */,
1451-
ABBEA8B217660AB30024A9D2 /* _CDEConfiguration.m */,
1452-
);
1453-
name = Machine;
1454-
sourceTree = "<group>";
1455-
};
14561445
ABBEA8B817660FD40024A9D2 /* Shared */ = {
14571446
isa = PBXGroup;
14581447
children = (
@@ -2166,7 +2155,6 @@
21662155
ABBEA7E61765CB730024A9D2 /* main.m in Sources */,
21672156
ABDA4235181BFF2C0054A226 /* CDEMenuWindowItemBadgeView.m in Sources */,
21682157
ABBEA7ED1765CB730024A9D2 /* CDEDocument.m in Sources */,
2169-
ABBEA7F61765CB730024A9D2 /* CDEDocument.xcdatamodeld in Sources */,
21702158
ABDA4282181C068F0054A226 /* CDEManagedObjectsTableViewController.m in Sources */,
21712159
ABBEA8241765D5AC0024A9D2 /* CDEPathActionLabelController.m in Sources */,
21722160
ABBEA8251765D5AC0024A9D2 /* CDENewConfigurationSummaryViewController.m in Sources */,
@@ -2187,7 +2175,6 @@
21872175
ABBEA8951765F3320024A9D2 /* NSBundle+CDEApplicationAnalyzer.m in Sources */,
21882176
ABBEA8A01765FC230024A9D2 /* NSURL+CDEApplicationAnalyzer.m in Sources */,
21892177
ABBEA8A4176602B60024A9D2 /* NSString+CDEPersistentStore.m in Sources */,
2190-
ABBEA8B517660AB30024A9D2 /* _CDEConfiguration.m in Sources */,
21912178
ABBEA8B617660AB30024A9D2 /* CDEConfiguration.m in Sources */,
21922179
ABBEA8D41766212A0024A9D2 /* NSPasteboard-CDEAdditions.m in Sources */,
21932180
AB22AC7A17664480004890AC /* NSBundle+CDEModelFinder.m in Sources */,
@@ -2301,6 +2288,7 @@
23012288
ABB225D717B92B230024FE4F /* CDEProjectBrowserWindowController.m in Sources */,
23022289
ABB225DC17B939E60024FE4F /* CDEProjectBrowserItem.m in Sources */,
23032290
ABB225DF17B940CE0024FE4F /* CDEProjectBrowserItemTableCellView.m in Sources */,
2291+
AB4068FA1DE1C5DE001F83E9 /* FilteringArray.m in Sources */,
23042292
AB36447E17BA47D4004ADAAC /* CDESetupWindowController.m in Sources */,
23052293
);
23062294
runOnlyForDeploymentPostprocessing = 0;
@@ -2480,19 +2468,6 @@
24802468
defaultConfigurationName = Release;
24812469
};
24822470
/* End XCConfigurationList section */
2483-
2484-
/* Begin XCVersionGroup section */
2485-
ABBEA7F41765CB730024A9D2 /* CDEDocument.xcdatamodeld */ = {
2486-
isa = XCVersionGroup;
2487-
children = (
2488-
ABBEA7F51765CB730024A9D2 /* CDEDocument.xcdatamodel */,
2489-
);
2490-
currentVersion = ABBEA7F51765CB730024A9D2 /* CDEDocument.xcdatamodel */;
2491-
path = CDEDocument.xcdatamodeld;
2492-
sourceTree = "<group>";
2493-
versionGroupType = wrapper.xcdatamodel;
2494-
};
2495-
/* End XCVersionGroup section */
24962471
};
24972472
rootObject = ABBEA7CE1765CB730024A9D2 /* Project object */;
24982473
}

Core Data Editor/Core Data Editor/CDEApplicationDelegate.m

Lines changed: 3 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -51,65 +51,20 @@ - (IBAction)showProjectBrowser:(id)sender {
5151
if(self.projectBrowserWindowController == nil) {
5252
self.projectBrowserWindowController = [CDEProjectBrowserWindowController new];
5353
}
54-
[self.projectBrowserWindowController showWithProjectDirectoryURL:self.iPhoneSimulatorDirectory];
55-
}
56-
57-
#pragma mark - Helper
58-
#pragma mark - Helper / Security Scoped Resources
59-
- (BOOL)startAccessingCoreDataEditorSecurityScopedResources {
6054
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
61-
62-
BOOL iPhoneSimulatorSuccess = YES;
63-
64-
if(defaults.simulatorDirectory_cde != nil) {
65-
self.iPhoneSimulatorDirectory = defaults.simulatorDirectory_cde;
66-
iPhoneSimulatorSuccess = [self.iPhoneSimulatorDirectory startAccessingSecurityScopedResource];
67-
}
68-
69-
BOOL buildProductsDirectorySuccess = YES;
70-
71-
if(defaults.buildProductsDirectory_cde != nil) {
72-
self.derivedDataDirectory = defaults.buildProductsDirectory_cde;
73-
buildProductsDirectorySuccess = [self.derivedDataDirectory startAccessingSecurityScopedResource];
74-
if(buildProductsDirectorySuccess == NO) {
75-
// we have bookmark data but we cannot start accessing it!
76-
NSAlert *alert = [NSAlert new];
77-
alert.messageText = @"Failed to access Derived Data Directory";
78-
[alert addButtonWithTitle:@"Set Directory…"];
79-
[alert addButtonWithTitle:@"Cancel"];
80-
alert.informativeText = @"You have set a Xcode derived data directory in the preferences but Core Data Editor failed to access the contents of the directory. If you want to continue to use this feature you should set a new directory now.";
81-
NSUInteger returnCode = [alert runModal];
82-
if(returnCode == NSAlertFirstButtonReturn) {
83-
assert(false);
84-
// [self.preferencesWindowController showAutomaticProjectCreationPreferencesWithCompletionHandler:nil];
85-
}
86-
}
87-
}
88-
89-
return (iPhoneSimulatorSuccess && buildProductsDirectorySuccess);
55+
[self.projectBrowserWindowController showWithProjectDirectoryURL:defaults.simulatorDirectory_cde];
9056
}
9157

9258
#pragma mark NSApplicationDelegate
9359
- (void)applicationWillFinishLaunching:(NSNotification *)notification {
94-
95-
// Start accessing security scoped resources here because this delegate method is called
96-
// before applicationDidFinishLaunching: and before application:openFile:
97-
// Since we need access to the resources in both cases...
98-
[self startAccessingCoreDataEditorSecurityScopedResources];
99-
10060
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
101-
[defaults setObject:@"HELLO" forKey:@"AAAAAAAAAAAAAA"];
10261
[[NSNotificationCenter defaultCenter] addObserverForName:CDEUserDefaultsNotifications.didChangeSimulatorDirectory object:defaults queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
103-
[self.iPhoneSimulatorDirectory stopAccessingSecurityScopedResource];
10462
self.iPhoneSimulatorDirectory = defaults.simulatorDirectory_cde;
105-
[self.iPhoneSimulatorDirectory startAccessingSecurityScopedResource];
10663
[self.projectBrowserWindowController updateProjectDirectoryURL:self.iPhoneSimulatorDirectory];
10764
}];
10865

10966
[[NSNotificationCenter defaultCenter] addObserverForName:CDEUserDefaultsNotifications.didChangeBuildProductsDirectory object:defaults queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note) {
110-
[self.derivedDataDirectory stopAccessingSecurityScopedResource];
11167
self.derivedDataDirectory = defaults.buildProductsDirectory_cde;
112-
[self.derivedDataDirectory startAccessingSecurityScopedResource];
11368
}];
11469
}
11570
- (void)applicationDidFinishLaunching:(NSNotification *)notification {
@@ -125,10 +80,6 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification {
12580
}
12681

12782
self.aboutWindowController = [[CDEAboutWindowController alloc] initWithWindowNibName:@"CDEAboutWindowController"];
128-
// Create prefs if needed
129-
// if(self.preferencesWindowController == nil) {
130-
// self.preferencesWindowController = [CDEPreferencesWindowController new];
131-
// }
13283
}
13384

13485
- (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag
@@ -146,10 +97,6 @@ - (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender {
14697
}
14798

14899
- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename {
149-
// Need to create prefs?
150-
// if(self.preferencesWindowController == nil) {
151-
// self.preferencesWindowController = [CDEPreferencesWindowController new];
152-
// }
153100
if([filename.pathExtension isEqualToString:@"coredataeditor5"]) {
154101
[[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:[NSURL fileURLWithPath:filename] display:YES completionHandler:^(NSDocument * _Nullable document, BOOL documentWasAlreadyOpen, NSError * _Nullable error) {
155102

@@ -169,8 +116,6 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam
169116
if(buildProductsDirectory == nil) {
170117
NSLog(@"no build products directory.");
171118
assert(false);
172-
#pragma mark warn bla
173-
// [self.preferencesWindowController showAutomaticProjectCreationPreferencesAndDisplayInfoSheetWithCompletionHandler:nil];
174119
return YES;
175120
}
176121

@@ -211,17 +156,9 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam
211156
// We have found something!
212157
NSLog(@"%@ is compatible with %@", storeURL.lastPathComponent, modelURL);
213158
CDEDocument *document = [[NSDocumentController sharedDocumentController] openUntitledDocumentAndDisplay:NO error:NULL];
214-
CDEConfiguration *c = [document createConfiguration];
215-
error = nil;
216-
BOOL set = [c setBookmarkDataWithApplicationBundleURL:nil storeURL:storeURL modelURL:modelURL error:&error];
217-
if(!set) {
218-
NSLog(@"error: %@", error);
219-
}
159+
CDEConfiguration *configuration = [document createConfiguration];
160+
[configuration setApplicationBundleURL:nil storeURL:storeURL modelURL:modelURL];
220161
error = nil;
221-
BOOL setup = [document setupAndStartAccessingConfigurationRelatedURLsAndGetError:&error];
222-
if(!setup) {
223-
NSLog(@"error: %@", error);
224-
}
225162
[document makeWindowControllers];
226163
[document showWindows];
227164
return YES;
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1-
#import "_CDEConfiguration.h"
1+
@interface CDEConfiguration : NSObject
22

3-
@interface CDEConfiguration : _CDEConfiguration
4-
5-
#pragma mark - Getting the only Configuration object
6-
+ (CDEConfiguration *)fetchedConfigurationInManagedObjectContext:(NSManagedObjectContext *)managedObjectContext error:(NSError **)error;
7-
+ (BOOL)configurationExistsInManagedObjectContext:(NSManagedObjectContext *)managedObjectContext error:(NSError **)error;
3+
#pragma mark - Properties
4+
@property (nullable, readonly) NSURL *storeURL, *modelURL, *applicationBundleURL;
5+
@property (nullable, copy) NSString *applicationBundlePath;
6+
@property (nullable, strong) NSDictionary *autosaveInformationByEntityName;
7+
@property (nullable, copy) NSNumber *isMacApplication;
8+
@property (nullable, copy) NSString *modelPath;
9+
@property (nullable, copy) NSString *storePath;
810

911
#pragma mark - Properties
1012
@property (nonatomic, readonly, getter = isValid) BOOL isValid;
1113

12-
#pragma mark - Setting Bookmark Data in Batch
13-
- (BOOL)setBookmarkDataWithApplicationBundleURL:(NSURL *)applicationBundleURL storeURL:(NSURL *)storeURL modelURL:(NSURL *)modelURL error:(NSError **)error;
14+
#pragma mark - Setting URLs
15+
- (void)setApplicationBundleURL:(nullable NSURL *)applicationBundleURL storeURL:(nullable NSURL *)storeURL modelURL:(nullable NSURL *)modelURL;
16+
17+
- (NSData * _Nonnull )data;
18+
- (nullable instancetype)initWithData:(NSData * _Nullable )data;
1419

1520
@end

0 commit comments

Comments
 (0)