From 923e214509d649ddce1e7cda5328c46ef3197700 Mon Sep 17 00:00:00 2001 From: Wincent Colaiuta Date: Sun, 7 Nov 2010 23:35:08 +0100 Subject: [PATCH] Add WOFPrefs and set it up as principal class Signed-off-by: Wincent Colaiuta --- Info.plist | 2 +- WOFPrefs.h | 33 ++++++++++++++++++++++++++ WOFPrefs.m | 29 ++++++++++++++++++++++ fusion-prefs.xcodeproj/project.pbxproj | 6 +++++ 4 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 WOFPrefs.h create mode 100644 WOFPrefs.m diff --git a/Info.plist b/Info.plist index f01cfe2..f89cbc0 100644 --- a/Info.plist +++ b/Info.plist @@ -23,6 +23,6 @@ CFBundleShortVersionString 1.0 NSPrincipalClass - + WOFPrefs diff --git a/WOFPrefs.h b/WOFPrefs.h new file mode 100644 index 0000000..a5f018a --- /dev/null +++ b/WOFPrefs.h @@ -0,0 +1,33 @@ +// WOFPrefs.h +// Copyright 2010 Wincent Colaiuta. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + +#import + +#import "Fusion/Fusion.h" + +@interface WOFPrefs : NSObject { + +} + +@end diff --git a/WOFPrefs.m b/WOFPrefs.m new file mode 100644 index 0000000..3bb174a --- /dev/null +++ b/WOFPrefs.m @@ -0,0 +1,29 @@ +// WOFPrefs.m +// Copyright 2010 Wincent Colaiuta. All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE +// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. + +#import "WOFPrefs.h" + +@implementation WOFPrefs + +@end diff --git a/fusion-prefs.xcodeproj/project.pbxproj b/fusion-prefs.xcodeproj/project.pbxproj index f3556cb..4f2c913 100644 --- a/fusion-prefs.xcodeproj/project.pbxproj +++ b/fusion-prefs.xcodeproj/project.pbxproj @@ -9,6 +9,7 @@ /* Begin PBXBuildFile section */ 8D5B49B0048680CD000E48DA /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C167DFE841241C02AAC07 /* InfoPlist.strings */; }; 8D5B49B4048680CD000E48DA /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7ADFEA557BF11CA2CBB /* Cocoa.framework */; }; + BC50705F128760E3006F0550 /* WOFPrefs.m in Sources */ = {isa = PBXBuildFile; fileRef = BC50705E128760E3006F0550 /* WOFPrefs.m */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -23,6 +24,8 @@ BC5070491287603A006F0550 /* loadable-bundle-target.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "loadable-bundle-target.xcconfig"; path = "buildtools/loadable-bundle-target.xcconfig"; sourceTree = ""; }; BC50704A1287603A006F0550 /* release-style.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "release-style.xcconfig"; path = "buildtools/release-style.xcconfig"; sourceTree = ""; }; BC50705812876088006F0550 /* fusion-plugin-target.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = "fusion-plugin-target.xcconfig"; path = "../fusion/fusion-plugin-target.xcconfig"; sourceTree = SOURCE_ROOT; }; + BC50705D128760E3006F0550 /* WOFPrefs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WOFPrefs.h; sourceTree = ""; }; + BC50705E128760E3006F0550 /* WOFPrefs.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WOFPrefs.m; sourceTree = ""; }; BC7DE6A212874C1D0027C712 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; D2F7E65807B2D6F200F64583 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = ""; }; /* End PBXFileReference section */ @@ -74,6 +77,8 @@ 08FB77AFFE84173DC02AAC07 /* Classes */ = { isa = PBXGroup; children = ( + BC50705D128760E3006F0550 /* WOFPrefs.h */, + BC50705E128760E3006F0550 /* WOFPrefs.m */, ); name = Classes; sourceTree = ""; @@ -193,6 +198,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + BC50705F128760E3006F0550 /* WOFPrefs.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; };