Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

work towards getting an action plugin to work

  • Loading branch information...
commit f0ac6e28b487044caf232b3de1acf16306129849 1 parent 0fd1565
@dustinrue authored
View
52 ControlPlane.xcodeproj/project.pbxproj
@@ -112,7 +112,6 @@
DA8E2833156B498A0040FC35 /* ApplicationServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA8E2832156B498A0040FC35 /* ApplicationServices.framework */; };
DA8E283F156BCAD50040FC35 /* ToggleRemoteLoginAction.m in Sources */ = {isa = PBXBuildFile; fileRef = DA8E283E156BCAD50040FC35 /* ToggleRemoteLoginAction.m */; };
DA922E9D144FC95200920B40 /* ToggleInternetSharingAction.m in Sources */ = {isa = PBXBuildFile; fileRef = DA922E9C144FC95200920B40 /* ToggleInternetSharingAction.m */; };
- DA94BEE615CA235300ED2AB2 /* SampleESPlugin.bundle in Copy Evidence Source Plugins */ = {isa = PBXBuildFile; fileRef = DA94BEE315CA233400ED2AB2 /* SampleESPlugin.bundle */; };
DAA9ABFF1595FDE700B84B05 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = DAA9ABFE1595FDE700B84B05 /* README.md */; };
DAA9AC1B15961CDF00B84B05 /* MessagesAction.m in Sources */ = {isa = PBXBuildFile; fileRef = DAA9AC1A15961CDF00B84B05 /* MessagesAction.m */; };
DAAF16B11412D8A200F5D915 /* com.dustinrue.CPHelperTool in CopyFiles */ = {isa = PBXBuildFile; fileRef = DA5B01FB1412BB1700E19C50 /* com.dustinrue.CPHelperTool */; };
@@ -125,6 +124,7 @@
DACE6D4A159BFC1D00FEE37E /* CPHelperTool-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = DACE6D48159BFC1D00FEE37E /* CPHelperTool-Info.plist */; };
DACE6D4B159BFC1D00FEE37E /* CPHelperTool-Launchd.plist in Resources */ = {isa = PBXBuildFile; fileRef = DACE6D49159BFC1D00FEE37E /* CPHelperTool-Launchd.plist */; };
DACE6D4E159C055C00FEE37E /* com.dustinrue.CPHelperTool in Copy Launch Services */ = {isa = PBXBuildFile; fileRef = DA5B01FB1412BB1700E19C50 /* com.dustinrue.CPHelperTool */; };
+ DAD889B015D5F3DE009F30A3 /* NotificationCenterAction.bundle in Copy Action Plugins */ = {isa = PBXBuildFile; fileRef = DAD889A815D5F338009F30A3 /* NotificationCenterAction.bundle */; };
DAD98AD815746E5B003E5839 /* NSMutableArray+Merge.m in Sources */ = {isa = PBXBuildFile; fileRef = DAD98AD715746E5B003E5839 /* NSMutableArray+Merge.m */; };
DAE893EE1454FFFB005FA13C /* ToggleFirewallAction.m in Sources */ = {isa = PBXBuildFile; fileRef = DAE893E514546897005FA13C /* ToggleFirewallAction.m */; };
DAF2257E15ABD8CD003A8030 /* DisplayBrightnessAction.m in Sources */ = {isa = PBXBuildFile; fileRef = DD827506141188880098FA6E /* DisplayBrightnessAction.m */; };
@@ -188,12 +188,19 @@
remoteGlobalIDString = DA94BECD15CA233400ED2AB2;
remoteInfo = SampleESPlugin;
};
- DA94BEE415CA234200ED2AB2 /* PBXContainerItemProxy */ = {
+ DAD889A715D5F338009F30A3 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
- containerPortal = DA94BEDE15CA233400ED2AB2 /* SampleESPlugin.xcodeproj */;
+ containerPortal = DAD889A315D5F337009F30A3 /* NotificationCenterAction.xcodeproj */;
+ proxyType = 2;
+ remoteGlobalIDString = DAD8898E15D5F337009F30A3;
+ remoteInfo = NotificationCenterAction;
+ };
+ DAD889AE15D5F3CD009F30A3 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = DAD889A315D5F337009F30A3 /* NotificationCenterAction.xcodeproj */;
proxyType = 1;
- remoteGlobalIDString = DA94BECC15CA233400ED2AB2;
- remoteInfo = SampleESPlugin;
+ remoteGlobalIDString = DAD8898D15D5F337009F30A3;
+ remoteInfo = NotificationCenterAction;
};
/* End PBXContainerItemProxy section */
@@ -217,7 +224,6 @@
dstPath = "Evidence Sources";
dstSubfolderSpec = 13;
files = (
- DA94BEE615CA235300ED2AB2 /* SampleESPlugin.bundle in Copy Evidence Source Plugins */,
);
name = "Copy Evidence Source Plugins";
runOnlyForDeploymentPostprocessing = 0;
@@ -228,6 +234,7 @@
dstPath = Actions;
dstSubfolderSpec = 13;
files = (
+ DAD889B015D5F3DE009F30A3 /* NotificationCenterAction.bundle in Copy Action Plugins */,
);
name = "Copy Action Plugins";
runOnlyForDeploymentPostprocessing = 0;
@@ -486,6 +493,9 @@
DAC817B0159BF95A0012ED43 /* ServiceManagement.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ServiceManagement.framework; path = System/Library/Frameworks/ServiceManagement.framework; sourceTree = SDKROOT; };
DACE6D48159BFC1D00FEE37E /* CPHelperTool-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "CPHelperTool-Info.plist"; sourceTree = "<group>"; };
DACE6D49159BFC1D00FEE37E /* CPHelperTool-Launchd.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "CPHelperTool-Launchd.plist"; sourceTree = "<group>"; };
+ DAD889A315D5F337009F30A3 /* NotificationCenterAction.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = NotificationCenterAction.xcodeproj; path = NotificationCenterAction/NotificationCenterAction.xcodeproj; sourceTree = "<group>"; };
+ DAD889B115D5F4C1009F30A3 /* ActionPlugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ActionPlugin.h; path = Protocols/ActionPlugin.h; sourceTree = "<group>"; };
+ DAD889B215D5F4DC009F30A3 /* ToggleableActionPlugin.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = ToggleableActionPlugin.h; path = Protocols/ToggleableActionPlugin.h; sourceTree = "<group>"; };
DAD98AD615746E5B003E5839 /* NSMutableArray+Merge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "NSMutableArray+Merge.h"; path = "Source/NSMutableArray+Merge.h"; sourceTree = "<group>"; };
DAD98AD715746E5B003E5839 /* NSMutableArray+Merge.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "NSMutableArray+Merge.m"; path = "Source/NSMutableArray+Merge.m"; sourceTree = "<group>"; };
DAE893E414546897005FA13C /* ToggleFirewallAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ToggleFirewallAction.h; path = Source/ToggleFirewallAction.h; sourceTree = "<group>"; };
@@ -865,6 +875,8 @@
DA41954C151C17F000FF7BA0 /* ActionSubmenuItem.m */,
8D71CAEC0C17BA7900E56526 /* ToggleableAction.h */,
8D71CAED0C17BA7900E56526 /* ToggleableAction.m */,
+ DAD889B115D5F4C1009F30A3 /* ActionPlugin.h */,
+ DAD889B215D5F4DC009F30A3 /* ToggleableActionPlugin.h */,
);
name = Actions;
sourceTree = "<group>";
@@ -872,6 +884,7 @@
DA008D1C15D4B73C0091CC54 /* Plugins */ = {
isa = PBXGroup;
children = (
+ DAD889A315D5F337009F30A3 /* NotificationCenterAction.xcodeproj */,
);
name = Plugins;
sourceTree = "<group>";
@@ -916,6 +929,14 @@
name = Products;
sourceTree = "<group>";
};
+ DAD889A415D5F337009F30A3 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ DAD889A815D5F338009F30A3 /* NotificationCenterAction.bundle */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
DAF2F819150EE5960040DDC7 /* External Source */ = {
isa = PBXGroup;
children = (
@@ -1095,7 +1116,7 @@
buildRules = (
);
dependencies = (
- DA94BEE515CA234200ED2AB2 /* PBXTargetDependency */,
+ DAD889AF15D5F3CD009F30A3 /* PBXTargetDependency */,
DA5B02071412BB3A00E19C50 /* PBXTargetDependency */,
DA5B01E31412B78900E19C50 /* PBXTargetDependency */,
);
@@ -1186,6 +1207,10 @@
projectDirPath = "";
projectReferences = (
{
+ ProductGroup = DAD889A415D5F337009F30A3 /* Products */;
+ ProjectRef = DAD889A315D5F337009F30A3 /* NotificationCenterAction.xcodeproj */;
+ },
+ {
ProductGroup = DA94BEDF15CA233400ED2AB2 /* Products */;
ProjectRef = DA94BEDE15CA233400ED2AB2 /* SampleESPlugin.xcodeproj */;
},
@@ -1207,6 +1232,13 @@
remoteRef = DA94BEE215CA233400ED2AB2 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
+ DAD889A815D5F338009F30A3 /* NotificationCenterAction.bundle */ = {
+ isa = PBXReferenceProxy;
+ fileType = wrapper.cfbundle;
+ path = NotificationCenterAction.bundle;
+ remoteRef = DAD889A715D5F338009F30A3 /* PBXContainerItemProxy */;
+ sourceTree = BUILT_PRODUCTS_DIR;
+ };
/* End PBXReferenceProxy section */
/* Begin PBXResourcesBuildPhase section */
@@ -1435,10 +1467,10 @@
target = DA5B01FA1412BB1700E19C50 /* com.dustinrue.CPHelperTool */;
targetProxy = DA5B02061412BB3A00E19C50 /* PBXContainerItemProxy */;
};
- DA94BEE515CA234200ED2AB2 /* PBXTargetDependency */ = {
+ DAD889AF15D5F3CD009F30A3 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
- name = SampleESPlugin;
- targetProxy = DA94BEE415CA234200ED2AB2 /* PBXContainerItemProxy */;
+ name = NotificationCenterAction;
+ targetProxy = DAD889AE15D5F3CD009F30A3 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
View
280 NotificationCenterAction/NotificationCenterAction.xcodeproj/project.pbxproj
@@ -0,0 +1,280 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ DAD8899215D5F337009F30A3 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DAD8899115D5F337009F30A3 /* Cocoa.framework */; };
+ DAD8899C15D5F337009F30A3 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = DAD8899A15D5F337009F30A3 /* InfoPlist.strings */; };
+ DAD889AD15D5F394009F30A3 /* NotificationCenterAction.m in Sources */ = {isa = PBXBuildFile; fileRef = DAD889AC15D5F394009F30A3 /* NotificationCenterAction.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ DAD8898E15D5F337009F30A3 /* NotificationCenterAction.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NotificationCenterAction.bundle; sourceTree = BUILT_PRODUCTS_DIR; };
+ DAD8899115D5F337009F30A3 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
+ DAD8899415D5F337009F30A3 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
+ DAD8899515D5F337009F30A3 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
+ DAD8899615D5F337009F30A3 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ DAD8899915D5F337009F30A3 /* NotificationCenterAction-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "NotificationCenterAction-Info.plist"; sourceTree = "<group>"; };
+ DAD8899B15D5F337009F30A3 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ DAD8899D15D5F337009F30A3 /* NotificationCenterAction-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NotificationCenterAction-Prefix.pch"; sourceTree = "<group>"; };
+ DAD889AB15D5F394009F30A3 /* NotificationCenterAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NotificationCenterAction.h; sourceTree = "<group>"; };
+ DAD889AC15D5F394009F30A3 /* NotificationCenterAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NotificationCenterAction.m; sourceTree = "<group>"; };
+ DAD889B315D5F61C009F30A3 /* ActionPlugin.h */ = {isa = PBXFileReference; lastKnownFileType = file; name = ActionPlugin.h; path = ../../Protocols/ActionPlugin.h; sourceTree = "<group>"; };
+ DAD889B415D5F61C009F30A3 /* ToggleableActionPlugin.h */ = {isa = PBXFileReference; lastKnownFileType = file; name = ToggleableActionPlugin.h; path = ../../Protocols/ToggleableActionPlugin.h; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ DAD8898B15D5F337009F30A3 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ DAD8899215D5F337009F30A3 /* Cocoa.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ DAD8898315D5F337009F30A3 = {
+ isa = PBXGroup;
+ children = (
+ DAD8899715D5F337009F30A3 /* NotificationCenterAction */,
+ DAD8899015D5F337009F30A3 /* Frameworks */,
+ DAD8898F15D5F337009F30A3 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ DAD8898F15D5F337009F30A3 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ DAD8898E15D5F337009F30A3 /* NotificationCenterAction.bundle */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ DAD8899015D5F337009F30A3 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ DAD8899115D5F337009F30A3 /* Cocoa.framework */,
+ DAD8899315D5F337009F30A3 /* Other Frameworks */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ DAD8899315D5F337009F30A3 /* Other Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ DAD8899415D5F337009F30A3 /* AppKit.framework */,
+ DAD8899515D5F337009F30A3 /* CoreData.framework */,
+ DAD8899615D5F337009F30A3 /* Foundation.framework */,
+ );
+ name = "Other Frameworks";
+ sourceTree = "<group>";
+ };
+ DAD8899715D5F337009F30A3 /* NotificationCenterAction */ = {
+ isa = PBXGroup;
+ children = (
+ DAD889B315D5F61C009F30A3 /* ActionPlugin.h */,
+ DAD889B415D5F61C009F30A3 /* ToggleableActionPlugin.h */,
+ DAD889AB15D5F394009F30A3 /* NotificationCenterAction.h */,
+ DAD889AC15D5F394009F30A3 /* NotificationCenterAction.m */,
+ DAD8899815D5F337009F30A3 /* Supporting Files */,
+ );
+ path = NotificationCenterAction;
+ sourceTree = "<group>";
+ };
+ DAD8899815D5F337009F30A3 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ DAD8899915D5F337009F30A3 /* NotificationCenterAction-Info.plist */,
+ DAD8899A15D5F337009F30A3 /* InfoPlist.strings */,
+ DAD8899D15D5F337009F30A3 /* NotificationCenterAction-Prefix.pch */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ DAD8898D15D5F337009F30A3 /* NotificationCenterAction */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = DAD889A015D5F337009F30A3 /* Build configuration list for PBXNativeTarget "NotificationCenterAction" */;
+ buildPhases = (
+ DAD8898A15D5F337009F30A3 /* Sources */,
+ DAD8898B15D5F337009F30A3 /* Frameworks */,
+ DAD8898C15D5F337009F30A3 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = NotificationCenterAction;
+ productName = NotificationCenterAction;
+ productReference = DAD8898E15D5F337009F30A3 /* NotificationCenterAction.bundle */;
+ productType = "com.apple.product-type.bundle";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ DAD8898515D5F337009F30A3 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0440;
+ ORGANIZATIONNAME = "Dustin Rue";
+ };
+ buildConfigurationList = DAD8898815D5F337009F30A3 /* Build configuration list for PBXProject "NotificationCenterAction" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = DAD8898315D5F337009F30A3;
+ productRefGroup = DAD8898F15D5F337009F30A3 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ DAD8898D15D5F337009F30A3 /* NotificationCenterAction */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ DAD8898C15D5F337009F30A3 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ DAD8899C15D5F337009F30A3 /* InfoPlist.strings in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ DAD8898A15D5F337009F30A3 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ DAD889AD15D5F394009F30A3 /* NotificationCenterAction.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ DAD8899A15D5F337009F30A3 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ DAD8899B15D5F337009F30A3 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ DAD8899E15D5F337009F30A3 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_64_BIT)";
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = macosx;
+ };
+ name = Debug;
+ };
+ DAD8899F15D5F337009F30A3 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_64_BIT)";
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_ENABLE_OBJC_EXCEPTIONS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ SDKROOT = macosx;
+ };
+ name = Release;
+ };
+ DAD889A115D5F337009F30A3 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COMBINE_HIDPI_IMAGES = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "NotificationCenterAction/NotificationCenterAction-Prefix.pch";
+ INFOPLIST_FILE = "NotificationCenterAction/NotificationCenterAction-Info.plist";
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ USER_HEADER_SEARCH_PATHS = "";
+ WRAPPER_EXTENSION = bundle;
+ };
+ name = Debug;
+ };
+ DAD889A215D5F337009F30A3 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ COMBINE_HIDPI_IMAGES = YES;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "NotificationCenterAction/NotificationCenterAction-Prefix.pch";
+ INFOPLIST_FILE = "NotificationCenterAction/NotificationCenterAction-Info.plist";
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ USER_HEADER_SEARCH_PATHS = "";
+ WRAPPER_EXTENSION = bundle;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ DAD8898815D5F337009F30A3 /* Build configuration list for PBXProject "NotificationCenterAction" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ DAD8899E15D5F337009F30A3 /* Debug */,
+ DAD8899F15D5F337009F30A3 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ DAD889A015D5F337009F30A3 /* Build configuration list for PBXNativeTarget "NotificationCenterAction" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ DAD889A115D5F337009F30A3 /* Debug */,
+ DAD889A215D5F337009F30A3 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = DAD8898515D5F337009F30A3 /* Project object */;
+}
View
30 NotificationCenterAction/NotificationCenterAction/NotificationCenterAction-Info.plist
@@ -0,0 +1,30 @@
+<?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>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIconFile</key>
+ <string></string>
+ <key>CFBundleIdentifier</key>
+ <string>com.dustinrue.${PRODUCT_NAME:rfc1034identifier}</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>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+ <key>NSHumanReadableCopyright</key>
+ <string>Copyright © 2012 Dustin Rue. All rights reserved.</string>
+ <key>NSPrincipalClass</key>
+ <string></string>
+</dict>
+</plist>
View
7 NotificationCenterAction/NotificationCenterAction/NotificationCenterAction-Prefix.pch
@@ -0,0 +1,7 @@
+//
+// Prefix header for all source files of the 'NotificationCenterAction' target in the 'NotificationCenterAction' project
+//
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+#endif
View
14 NotificationCenterAction/NotificationCenterAction/NotificationCenterAction.h
@@ -0,0 +1,14 @@
+//
+// NotificationCenterAction.h
+// NotificationCenterAction
+//
+// Created by Dustin Rue on 8/10/12.
+// Copyright (c) 2012 Dustin Rue. All rights reserved.
+//
+
+#import "ActionPlugin.h"
+#import "ToggleableActionPlugin.h"
+
+@interface NotificationCenterAction : NSObject <ToggleableAction>
+
+@end
View
171 NotificationCenterAction/NotificationCenterAction/NotificationCenterAction.m
@@ -0,0 +1,171 @@
+//
+// NotificationCenterAction.m
+// NotificationCenterAction
+//
+// Created by Dustin Rue on 8/10/12.
+// Copyright (c) 2012 Dustin Rue. All rights reserved.
+//
+
+#import "NotificationCenterAction.h"
+
+@implementation NotificationCenterAction
+
+@synthesize helperToolResponse;
+@synthesize type;
+@synthesize context;
+@synthesize when;
+@synthesize delay;
+@synthesize enabled;
+@synthesize turnOn;
+
++ (NSString *)typeForClass:(Class)klass {
+ return NSLocalizedString(@"NotificationCenterAction", @"");
+}
+
++ (Class)classForType:(NSString *)type {
+ NSString *classString = [NSString stringWithFormat:@"%@Action", type];
+ Class klass = NSClassFromString(classString);
+ if (!klass) {
+ NSLog(@"ERROR: No implementation class '%@'!", classString);
+ return nil;
+ }
+ return klass;
+}
+
++ (Action *)actionFromDictionary:(NSDictionary *)dict {
+ NSString *type = [dict valueForKey:@"type"];
+ if (!type) {
+ NSLog(@"ERROR: Action doesn't have a type!");
+ return nil;
+ }
+ Action *obj = [[[NotificationCenterAction classForType:type] alloc] initWithDictionary:dict];
+ return obj;
+}
+
+- (id)init {
+ self = [super init];
+
+ /*
+ if ([[self class] isEqualTo:[self class]]) {
+ [NSException raise:@"Abstract Class Exception"
+ format:@"Error, attempting to instantiate Action directly."];
+ }
+ */
+
+ if (!self)
+ return nil;
+
+ type = @"NotificationCenter";
+ context = @"";
+ when = @"Arrival";
+ delay = [[NSNumber alloc] initWithDouble:0];
+ enabled = [[NSNumber alloc] initWithBool:YES];
+
+ return self;
+}
+
+- (id)initWithDictionary:(NSDictionary *)dict {
+
+ if ([[self class] isEqualTo:[self class]]) {
+ [NSException raise:@"Abstract Class Exception"
+ format:@"Error, attempting to instantiate Action directly."];
+ }
+
+ if (!(self = [super init]))
+ return nil;
+
+ type = @"NotificationCenter";
+ context = [[dict valueForKey:@"context"] copy];
+ when = [[dict valueForKey:@"when"] copy];
+ delay = [[dict valueForKey:@"delay"] copy];
+ enabled = [[dict valueForKey:@"enabled"] copy];
+
+ return self;
+}
+
+- (void)dealloc {
+
+}
+
+- (NSMutableDictionary *)dictionary {
+ return [NSMutableDictionary dictionaryWithObjectsAndKeys:
+ [type copy], @"type",
+ [context copy], @"context",
+ [when copy], @"when",
+ [delay copy], @"delay",
+ [enabled copy], @"enabled",
+ nil];
+}
+
++ (NSString *)helpTextForActionOfType:(NSString *)type {
+ return @"";
+}
+
+- (NSComparisonResult)compareDelay:(Action *)other {
+
+}
+
+// To be implemented by descendant classes:
+- (NSString *)description {
+ if (turnOn)
+ return NSLocalizedString(@"Turning Notification Center Alerts on.", @"");
+ else
+ return NSLocalizedString(@"Turning Notification Center Alerts off.", @"");
+}
+
+- (BOOL)execute:(NSString **)errorString {
+ NSLog(@"HI!");
+ return YES;
+}
+
++ (NSString *)helpText {
+ return NSLocalizedString(@"The parameter for Toggle Notification Center Alerts actions is either \"1\" "
+ "or \"0\", depending on whether you want enable or disable Notification Center Alerts."
+ "", @"");
+}
+
++ (NSString *)creationHelpText {
+ return NSLocalizedString(@"Turn Notification Center Alerts", @"Will be followed by 'on' or 'off'");
+}
+
++ (NSString *)friendlyName {
+ return NSLocalizedString(@"Toggle Notification Center Alerts", @"");
+}
+
++ (NSString *)menuCategory {
+ return NSLocalizedString(@"System Preferences", @"");
+}
+
++ (BOOL) shouldWaitForScreensaverExit {
+ return YES;
+}
+
++ (BOOL) shouldWaitForScreenUnlock {
+ return YES;
+}
+
+
+- (BOOL)executeAppleScript:(NSString *)script {
+ return YES;
+}
+
+- (NSArray *)executeAppleScriptReturningListOfStrings:(NSString *)script {
+ return [NSArray array];
+}
+
+
+
++ (NSArray *)limitedOptions {
+ return [NSArray arrayWithObjects:
+ [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"option",
+ NSLocalizedString(@"on", @"Used in toggling actions"), @"description", nil],
+ [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO], @"option",
+ NSLocalizedString(@"off", @"Used in toggling actions"), @"description", nil],
+ nil];
+}
+
+- (id)initWithOption:(NSNumber *)option {
+
+}
+
+@end
View
2  NotificationCenterAction/NotificationCenterAction/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
2  Plugins/Evidence Source/SampleESPlugin/SampleESPlugin/SampleESPlugin/SampleESPlugin.h
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#include "EvidenceSourcePlugin.h"
+#import "EvidenceSourcePlugin.h"
View
79 Protocols/ActionPlugin.h
@@ -0,0 +1,79 @@
+//
+// ActionPlugin.h
+// ControlPlane
+//
+// Created by Dustin Rue on 8/10/12.
+//
+//
+
+#import <Foundation/Foundation.h>
+
+@class Action;
+
+@protocol Action <NSObject>
+/*{
+ NSString *type, *context, *when;
+ NSNumber *delay, *enabled;
+
+ // terrible hack so that an action can
+ // have response data from the helper tool
+ // but because the helpertool is a category
+ // action, it can't define its own ivars
+ CFDictionaryRef helperToolResponse;
+
+ NSAppleEventDescriptor *appleScriptResult_;
+}
+ */
+
+@property (assign) CFDictionaryRef helperToolResponse;
+@property (strong) NSString *type;
+@property (strong) NSString *context;
+@property (strong) NSString *when;
+@property (strong) NSNumber *delay;
+@property (strong) NSNumber *enabled;
+
++ (NSString *)typeForClass:(Class)klass;
++ (Class)classForType:(NSString *)type;
+
++ (Action *)actionFromDictionary:(NSDictionary *)dict;
+- (id)init;
+- (id)initWithDictionary:(NSDictionary *)dict;
+- (void)dealloc;
+- (NSMutableDictionary *)dictionary;
++ (NSString *)helpTextForActionOfType:(NSString *)type;
+
+- (NSComparisonResult)compareDelay:(Action *)other;
+
+// To be implemented by descendant classes:
+- (NSString *)description; // (use present-tense imperative)
+- (BOOL)execute:(NSString **)errorString;
++ (NSString *)helpText;
++ (NSString *)creationHelpText;
++ (NSString *)friendlyName;
++ (NSString *)menuCategory;
+
+// Actions should override these if they need to wait until
+// after the screen saver has quit, the screen has been unlocked
+// or both.
++ (BOOL) shouldWaitForScreensaverExit;
++ (BOOL) shouldWaitForScreenUnlock;
+
+// Helpers
+- (BOOL)executeAppleScript:(NSString *)script; // returns YES on success, NO on failure
+- (NSArray *)executeAppleScriptReturningListOfStrings:(NSString *)script;
+
+@end
+
+@protocol ActionWithLimitedOptions <Action>
++ (NSArray *)limitedOptions; // Returns an array of dictionaries (keys: option, description)
+- (id)initWithOption:(NSObject *)option;
+@end
+
+@protocol ActionWithFileParameter <Action>
+- (id)initWithFile:(NSString *)file;
+@end
+
+// An action whose creation UI should just prompt for a string (NSTextField)
+@protocol ActionWithString <Action>
+@end
+
View
23 Protocols/ToggleableActionPlugin.h
@@ -0,0 +1,23 @@
+//
+// ToggleableActionPlugin.h
+// ControlPlane
+//
+// Created by Dustin Rue on 8/10/12.
+//
+//
+
+#import <Foundation/Foundation.h>
+#import "ActionPlugin.h"
+
+@protocol ToggleableAction <Action,ActionWithLimitedOptions>
+
+@property (assign) BOOL turnOn;
+
+- (id)initWithDictionary:(NSDictionary *)dict;
+- (void)dealloc;
+- (NSMutableDictionary *)dictionary;
+
++ (NSArray *)limitedOptions;
+- (id)initWithOption:(NSNumber *)option;
+
+@end
Please sign in to comment.
Something went wrong with that request. Please try again.