aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2009-12-04 00:13:13 +0000
committermltownsend <mltownsend@gmail.com>2009-12-04 00:13:13 +0000
commit3a289007e40603f724d27f8ca0824075ad005e79 (patch)
tree8e4dd8c1f4ddf771f8254eb1f5b53f1c8e029f9f
parentd7a5b54bb9d7356a4e2a26f3bc529104b7faf76e (diff)
downloadsequelpro-3a289007e40603f724d27f8ca0824075ad005e79.tar.gz
sequelpro-3a289007e40603f724d27f8ca0824075ad005e79.tar.bz2
sequelpro-3a289007e40603f724d27f8ca0824075ad005e79.zip
Moved the SPUserMO source into the Core Data folder with the model. Added comments to SPUserManager
-rw-r--r--Source/SPUserManager.m2
-rw-r--r--sequel-pro.xcodeproj/project.pbxproj4
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m
index dc18659d..37824f47 100644
--- a/Source/SPUserManager.m
+++ b/Source/SPUserManager.m
@@ -576,6 +576,8 @@
- (void)contextDidSave:(NSNotification *)notification
{
NSManagedObjectContext *notificationContext = (NSManagedObjectContext *)[notification object];
+ // If there are multiple user manager windows open, it's possible to get this
+ // notification from foreign windows. Ignore those notifications.
if (notificationContext != self.managedObjectContext) return;
if (!isInitializing)
diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj
index 0be3abd9..1ee42157 100644
--- a/sequel-pro.xcodeproj/project.pbxproj
+++ b/sequel-pro.xcodeproj/project.pbxproj
@@ -828,6 +828,8 @@
173E70A1107FF495008733C9 /* Core Data */ = {
isa = PBXGroup;
children = (
+ 4D90B79C101E0CF200D116A1 /* SPUserMO.h */,
+ 4D90B79D101E0CF200D116A1 /* SPUserMO.m */,
4D90B79B101E0CF200D116A1 /* SPUserManager.xcdatamodel */,
);
name = "Core Data";
@@ -1105,8 +1107,6 @@
isa = PBXGroup;
children = (
173E70A1107FF495008733C9 /* Core Data */,
- 4D90B79C101E0CF200D116A1 /* SPUserMO.h */,
- 4D90B79D101E0CF200D116A1 /* SPUserMO.m */,
172A650F0F7BED7A001E861A /* SPConsoleMessage.h */,
172A65100F7BED7A001E861A /* SPConsoleMessage.m */,
17C058860FC9FC390077E9CF /* SPNarrowDownCompletion.h */,