diff options
-rw-r--r-- | Resources/Info.plist | 4 | ||||
-rw-r--r-- | Source/SPAppController.m | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Resources/Info.plist b/Resources/Info.plist index f62891db..819db1db 100644 --- a/Resources/Info.plist +++ b/Resources/Info.plist @@ -14,7 +14,7 @@ <key>CFBundleTypeIconFile</key> <string>appicon.icns</string> <key>CFBundleTypeName</key> - <string>DocumentType</string> + <string>SequelPro connection</string> <key>CFBundleTypeOSTypes</key> <array> <string>connection</string> @@ -32,7 +32,7 @@ <key>CFBundleTypeIconFile</key> <string>appicon.icns</string> <key>CFBundleTypeName</key> - <string>DocumentType</string> + <string>SQL file</string> <key>CFBundleTypeOSTypes</key> <array> <string>sql text</string> diff --git a/Source/SPAppController.m b/Source/SPAppController.m index e3778327..b9e32dd1 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -190,7 +190,7 @@ TableDocument *firstTableDocument; // Manually open a new document, setting SPAppController as sender to trigger autoconnection - if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"DocumentType" error:nil]) { + if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"SequelPro connection" error:nil]) { [firstTableDocument setShouldAutomaticallyConnect:NO]; // user comes from a openPanel? if so use the chosen encoding @@ -225,7 +225,7 @@ TableDocument *newTableDocument; // Manually open a new document, setting SPAppController as sender to trigger autoconnection - if (newTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"DocumentType" error:nil]) { + if (newTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"SequelPro connection" error:nil]) { [newTableDocument setShouldAutomaticallyConnect:NO]; [[NSDocumentController sharedDocumentController] addDocument:newTableDocument]; [newTableDocument makeWindowControllers]; @@ -342,7 +342,7 @@ TableDocument *firstTableDocument; // Manually open a new document, setting SPAppController as sender to trigger autoconnection - if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"DocumentType" error:nil]) { + if (firstTableDocument = [[NSDocumentController sharedDocumentController] makeUntitledDocumentOfType:@"SequelPro connection" error:nil]) { if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AutoConnectToDefault"]) { [firstTableDocument setShouldAutomaticallyConnect:YES]; } |