From 7eee76858e7a10f36e57de01746b8a0ebd586b05 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Sat, 18 Feb 2012 03:17:52 +0000 Subject: [PATCH] Enable sandboxing --- Classes/Controllers/GrowlController.m | 4 ++++ Textual.entitlements | 10 ++++++++++ Textual.xcodeproj/project.pbxproj | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 Textual.entitlements diff --git a/Classes/Controllers/GrowlController.m b/Classes/Controllers/GrowlController.m index 2d17dea094..64cf9c1282 100755 --- a/Classes/Controllers/GrowlController.m +++ b/Classes/Controllers/GrowlController.m @@ -176,4 +176,8 @@ - (void)growlNotificationWasClicked:(id)context { } } +- (BOOL)hasNetworkClientEntitlement { + return YES; +} + @end \ No newline at end of file diff --git a/Textual.entitlements b/Textual.entitlements new file mode 100644 index 0000000000..ee95ab7e58 --- /dev/null +++ b/Textual.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.network.client + + + diff --git a/Textual.xcodeproj/project.pbxproj b/Textual.xcodeproj/project.pbxproj index c01021fd4b..834facd58c 100755 --- a/Textual.xcodeproj/project.pbxproj +++ b/Textual.xcodeproj/project.pbxproj @@ -682,6 +682,7 @@ 4CFC7DB61231F40C00FFC3B7 /* NSNumberHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSNumberHelper.m; sourceTree = ""; }; 4CFF3BD511CC715A00FF2930 /* DDInvocationGrabber.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DDInvocationGrabber.m; sourceTree = ""; }; 4CFF3BD711CC715A00FF2930 /* DDExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DDExtensions.m; sourceTree = ""; }; + 774A728F14EF4C04008E9BA3 /* Textual.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Textual.entitlements; sourceTree = ""; }; 77A33937146B3B300003ACD2 /* Growl.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Growl.framework; path = Frameworks/Growl.framework; sourceTree = ""; }; 780253C20C09525900C170D4 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = /System/Library/Frameworks/CoreServices.framework; sourceTree = ""; }; 780C67C711822AFF00CB739F /* ImageURLParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ImageURLParser.m; sourceTree = ""; }; @@ -814,6 +815,7 @@ 29B97314FDCFA39411CA2CEA /* LimeChat */ = { isa = PBXGroup; children = ( + 774A728F14EF4C04008E9BA3 /* Textual.entitlements */, 080E96DDFE201D6D7F000001 /* Classes */, 29B97317FDCFA39411CA2CEA /* Resources */, 29B97323FDCFA39411CA2CEA /* Frameworks */, @@ -2334,6 +2336,7 @@ 4CA945EC11E1AFBA00D36367 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_ENTITLEMENTS = Textual.entitlements; CODE_SIGN_IDENTITY = "3rd Party Mac Developer Application"; COPY_PHASE_STRIP = YES; FRAMEWORK_SEARCH_PATHS = (