Skip to content

Commit

Permalink
Bugfix - updated project settings for MacOS Catalina compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
mckenfra committed Jan 20, 2020
1 parent 38ba9b1 commit 7ad2f9c
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 20 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.*
!/.gitignore
xcuserdata
*.xccheckout
41 changes: 36 additions & 5 deletions PostgreSQL.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -304,10 +304,10 @@
2035B181149C8B83009A2972 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0640;
LastUpgradeCheck = 1010;
};
buildConfigurationList = 2035B184149C8B83009A2972 /* Build configuration list for PBXProject "PostgreSQL" */;
compatibilityVersion = "Xcode 3.2";
compatibilityVersion = "Xcode 10.0";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down Expand Up @@ -403,15 +403,26 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
Expand All @@ -433,7 +444,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "PostgreSQL/PostgreSQL-Info.plist";
INFOPLIST_PREFIX_HEADER = "";
MACOSX_DEPLOYMENT_TARGET = 10.7;
MACOSX_DEPLOYMENT_TARGET = 10.14;
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "";
PRODUCT_NAME = PostgreSQL;
Expand All @@ -446,11 +457,21 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
Expand All @@ -470,7 +491,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
INFOPLIST_FILE = "PostgreSQL/PostgreSQL-Info.plist";
INFOPLIST_PREFIX_HEADER = "";
MACOSX_DEPLOYMENT_TARGET = 10.7;
MACOSX_DEPLOYMENT_TARGET = 10.14;
OTHER_CFLAGS = "";
PRODUCT_NAME = PostgreSQL;
SDKROOT = macosx;
Expand All @@ -480,25 +501,35 @@
2035B1A9149C8B84009A2972 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 79VG65MJG4;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PostgreSQL/PostgreSQL-Prefix.pch";
INFOPLIST_FILE = "PostgreSQL/PostgreSQL-Info.plist";
INSTALL_PATH = "$(HOME)/Library/PreferencePanes";
PRODUCT_BUNDLE_IDENTIFIER = "com.maccatech.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = PostgreSQL;
PROVISIONING_PROFILE_SPECIFIER = "";
WRAPPER_EXTENSION = prefPane;
};
name = Debug;
};
2035B1AA149C8B84009A2972 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 79VG65MJG4;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "PostgreSQL/PostgreSQL-Prefix.pch";
INFOPLIST_FILE = "PostgreSQL/PostgreSQL-Info.plist";
INSTALL_PATH = "$(HOME)/Library/PreferencePanes";
PRODUCT_BUNDLE_IDENTIFIER = "com.maccatech.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = PostgreSQL;
PROVISIONING_PROFILE_SPECIFIER = "";
WRAPPER_EXTENSION = prefPane;
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
15 changes: 6 additions & 9 deletions PostgreSQL/Classes/PGServerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,12 @@ - (NSDictionary *)filteredDictionaryUsingBlock:(BOOL(^)(id key, id value))block;
@implementation NSDictionary(Helper)
- (NSDictionary *)filteredDictionaryUsingBlock:(BOOL (^)(id, id))block
{
NSArray *keysToKeep = [self.allKeys filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id key, NSDictionary *bindings)
{
return block(key, self[key]);
}]];
NSArray *keysToKeep = [self keysOfEntriesPassingTest:^BOOL(id key, id obj, BOOL *stop) {
return block(key, obj);
}].allObjects;

if (keysToKeep == 0) return @{};
NSMutableDictionary *result = [NSMutableDictionary dictionaryWithCapacity:keysToKeep.count];
for (id key in keysToKeep) result[key] = self[key];
return [NSDictionary dictionaryWithDictionary:result];
if (keysToKeep.count == 0) return @{};
return [NSDictionary dictionaryWithObjects:[self objectsForKeys:keysToKeep notFoundMarker:[NSNull null]] forKeys:keysToKeep];
}
@end

Expand Down Expand Up @@ -937,7 +934,7 @@ - (NSString *)fullNameByJoiningUser:(NSString *)user name:(NSString *)name domai
NSString *result;
if (!name) result = domain;
else if (!domain) result = name;
else [NSString stringWithFormat:@"%@.%@", domain, name];
else result = [NSString stringWithFormat:@"%@.%@", domain, name];
return user && result ? [NSString stringWithFormat:@"%@@%@", user, result] : result;
}

Expand Down
6 changes: 2 additions & 4 deletions PostgreSQL/PostgreSQL-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@
<key>CFBundleIconFile</key>
<string>PostgreSQL</string>
<key>CFBundleIdentifier</key>
<string>com.maccatech.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>2.4.2</string>
<key>CFBundleVersion</key>
<string>2.4.2</string>
<string>2.4.3</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Macca Tech Ltd. All rights reserved.</string>
<key>NSMainNibFile</key>
Expand Down
12 changes: 10 additions & 2 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<br />
<img src="https://raw.github.com/mckenfra/postgresql-mac-preferences/master/PostgreSQL/Images/elephant.png" />
<img src="https://raw.github.com/mckenfra/postgresql-mac-preferences/master/PostgreSQL/Images/logo.png" />
<a href="http://mac.softpedia.com/get/Internet-Utilities/PostgresPrefs.shtml#status"><img align="right" src="http://s1.softpedia-static.com/_img/sp100clean.png?1" /></a>

=end html

Expand Down Expand Up @@ -230,6 +231,15 @@ However, from version 2.1 onwards, Postgre Preferences automatically detects and
</tr>
</thead>
<tbody>
<tr>
<td>v2.4.3</td>
<td>20-Jan 2020</td>
<td>Bugfix release
<ul>
<li>64-bit build for MacOS Catalina</li>
</ul>
</td>
</tr>
<tr>
<td>v2.4.2</td>
<td>8-Feb 2016</td>
Expand Down Expand Up @@ -403,8 +413,6 @@ However, from version 2.1 onwards, Postgre Preferences automatically detects and
<ul>
<li><a href="http://www.postgresql.org">www.postgresql.org</a></li>

<li>Man pages for <a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/launchd.8.html">launchd</a> and <a href="https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/launchctl.1.html">launchctl</a></li>

<li><a href="http://www.maccatech.com">www.maccatech.com</a></li>
</ul>

Expand Down

0 comments on commit 7ad2f9c

Please sign in to comment.