Skip to content

Commit dc91e6c

Browse files
author
Christian Kienle
authored
Merge pull request #40 from ChristianKienle/feature/refresh
primitive refresh feature
2 parents d302b0b + cf1a482 commit dc91e6c

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

CDE-Workspace.xcworkspace/xcshareddata/xcschemes/Core Data Editor.xcscheme

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
useCustomWorkingDirectory = "NO"
5050
ignoresPersistentStateOnLaunch = "NO"
5151
debugDocumentVersioning = "YES"
52-
enableAddressSanitizer = "YES"
5352
debugServiceExtension = "internal"
5453
allowLocationSimulation = "YES">
5554
<BuildableProductRunnable
@@ -63,11 +62,6 @@
6362
</BuildableReference>
6463
</BuildableProductRunnable>
6564
<AdditionalOptions>
66-
<AdditionalOption
67-
key = "NSZombieEnabled"
68-
value = "YES"
69-
isEnabled = "YES">
70-
</AdditionalOption>
7165
</AdditionalOptions>
7266
</LaunchAction>
7367
<ProfileAction

Core Data Editor/Core Data Editor/CDEDocument.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ - (IBAction)showConfiguration:(id)sender {
6969
}];
7070
}
7171

72+
- (IBAction)refresh:(id)sender {
73+
[self.editorViewController setConfiguration:self.configuration modelURL:self.modelURL storeURL:self.storeURL needsReload:YES error:NULL];
74+
}
75+
7276

7377
#pragma mark - NSDocument
7478
- (instancetype)init {

Core Data Editor/Core Data Editor/Main.storyboard

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@
102102
<action selector="saveDocumentAs:" target="Ady-hI-5gd" id="mDf-zr-I0C"/>
103103
</connections>
104104
</menuItem>
105-
<menuItem title="Revert to Saved" keyEquivalent="r" id="KaW-ft-85H">
105+
<menuItem isSeparatorItem="YES" id="fEx-u2-2ur"/>
106+
<menuItem title="Refresh" keyEquivalent="r" id="Yhp-E1-KkH">
106107
<connections>
107-
<action selector="revertDocumentToSaved:" target="Ady-hI-5gd" id="iJ3-Pv-kwq"/>
108+
<action selector="refresh:" target="Ady-hI-5gd" id="0lv-0g-tOW"/>
108109
</connections>
109110
</menuItem>
110111
<menuItem isSeparatorItem="YES" id="aJh-i4-bef"/>

0 commit comments

Comments
 (0)