forked from marcuswestin/WebViewJavascriptBridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create an OS X example app that creates everything in code
- Loading branch information
1 parent
9e69728
commit b85f3ff
Showing
9 changed files
with
594 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,340 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 46; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
2C136A2517641106004C7401 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C136A2417641106004C7401 /* Cocoa.framework */; }; | ||
2C136A2F17641106004C7401 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 2C136A2D17641106004C7401 /* InfoPlist.strings */; }; | ||
2C136A3117641106004C7401 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C136A3017641106004C7401 /* main.m */; }; | ||
2C136A3517641106004C7401 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 2C136A3317641106004C7401 /* Credits.rtf */; }; | ||
2C136A3817641106004C7401 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C136A3717641106004C7401 /* AppDelegate.m */; }; | ||
2C136A4217641236004C7401 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C136A4117641236004C7401 /* WebKit.framework */; }; | ||
2C136A4E176421B9004C7401 /* ExampleApp.html in Resources */ = {isa = PBXBuildFile; fileRef = 2C136A4D176421B9004C7401 /* ExampleApp.html */; }; | ||
2C136A5617642680004C7401 /* WebViewJavascriptBridge.js.txt in Resources */ = {isa = PBXBuildFile; fileRef = 2C136A5117642680004C7401 /* WebViewJavascriptBridge.js.txt */; }; | ||
2C136A5717642680004C7401 /* WebViewJavascriptBridgeAbstract.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C136A5317642680004C7401 /* WebViewJavascriptBridgeAbstract.m */; }; | ||
2C136A5817642680004C7401 /* WebViewJavascriptBridge_OSX.m in Sources */ = {isa = PBXBuildFile; fileRef = 2C136A5517642680004C7401 /* WebViewJavascriptBridge_OSX.m */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
2C136A2117641106004C7401 /* ExampleApp-OSX.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleApp-OSX.app"; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
2C136A2417641106004C7401 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; | ||
2C136A2717641106004C7401 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; | ||
2C136A2817641106004C7401 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; }; | ||
2C136A2917641106004C7401 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | ||
2C136A2C17641106004C7401 /* ExampleApp-OSX-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ExampleApp-OSX-Info.plist"; sourceTree = "<group>"; }; | ||
2C136A2E17641106004C7401 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | ||
2C136A3017641106004C7401 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | ||
2C136A3217641106004C7401 /* ExampleApp-OSX-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ExampleApp-OSX-Prefix.pch"; sourceTree = "<group>"; }; | ||
2C136A3417641106004C7401 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; }; | ||
2C136A3617641106004C7401 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; | ||
2C136A3717641106004C7401 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; | ||
2C136A4117641236004C7401 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; | ||
2C136A4D176421B9004C7401 /* ExampleApp.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = ExampleApp.html; sourceTree = "<group>"; }; | ||
2C136A5117642680004C7401 /* WebViewJavascriptBridge.js.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WebViewJavascriptBridge.js.txt; sourceTree = "<group>"; }; | ||
2C136A5217642680004C7401 /* WebViewJavascriptBridgeAbstract.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebViewJavascriptBridgeAbstract.h; sourceTree = "<group>"; }; | ||
2C136A5317642680004C7401 /* WebViewJavascriptBridgeAbstract.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WebViewJavascriptBridgeAbstract.m; sourceTree = "<group>"; }; | ||
2C136A5417642680004C7401 /* WebViewJavascriptBridge_OSX.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebViewJavascriptBridge_OSX.h; sourceTree = "<group>"; }; | ||
2C136A5517642680004C7401 /* WebViewJavascriptBridge_OSX.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WebViewJavascriptBridge_OSX.m; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
2C136A1E17641106004C7401 /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
2C136A4217641236004C7401 /* WebKit.framework in Frameworks */, | ||
2C136A2517641106004C7401 /* Cocoa.framework in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
2C136A1817641106004C7401 = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C136A4117641236004C7401 /* WebKit.framework */, | ||
2C136A2A17641106004C7401 /* ExampleApp-OSX */, | ||
2C136A2317641106004C7401 /* Frameworks */, | ||
2C136A2217641106004C7401 /* Products */, | ||
); | ||
sourceTree = "<group>"; | ||
}; | ||
2C136A2217641106004C7401 /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C136A2117641106004C7401 /* ExampleApp-OSX.app */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
2C136A2317641106004C7401 /* Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C136A2417641106004C7401 /* Cocoa.framework */, | ||
2C136A2617641106004C7401 /* Other Frameworks */, | ||
); | ||
name = Frameworks; | ||
sourceTree = "<group>"; | ||
}; | ||
2C136A2617641106004C7401 /* Other Frameworks */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C136A2717641106004C7401 /* AppKit.framework */, | ||
2C136A2817641106004C7401 /* CoreData.framework */, | ||
2C136A2917641106004C7401 /* Foundation.framework */, | ||
); | ||
name = "Other Frameworks"; | ||
sourceTree = "<group>"; | ||
}; | ||
2C136A2A17641106004C7401 /* ExampleApp-OSX */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C136A3617641106004C7401 /* AppDelegate.h */, | ||
2C136A3717641106004C7401 /* AppDelegate.m */, | ||
2C136A4D176421B9004C7401 /* ExampleApp.html */, | ||
2C136A4F17642680004C7401 /* WebViewJavascriptBridge_OSX */, | ||
2C136A2B17641106004C7401 /* Supporting Files */, | ||
); | ||
path = "ExampleApp-OSX"; | ||
sourceTree = "<group>"; | ||
}; | ||
2C136A2B17641106004C7401 /* Supporting Files */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C136A2C17641106004C7401 /* ExampleApp-OSX-Info.plist */, | ||
2C136A2D17641106004C7401 /* InfoPlist.strings */, | ||
2C136A3017641106004C7401 /* main.m */, | ||
2C136A3217641106004C7401 /* ExampleApp-OSX-Prefix.pch */, | ||
2C136A3317641106004C7401 /* Credits.rtf */, | ||
); | ||
name = "Supporting Files"; | ||
sourceTree = "<group>"; | ||
}; | ||
2C136A4F17642680004C7401 /* WebViewJavascriptBridge_OSX */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C136A5017642680004C7401 /* WebViewJavascriptAbstract */, | ||
2C136A5417642680004C7401 /* WebViewJavascriptBridge_OSX.h */, | ||
2C136A5517642680004C7401 /* WebViewJavascriptBridge_OSX.m */, | ||
); | ||
name = WebViewJavascriptBridge_OSX; | ||
path = ../../WebViewJavascriptBridge_OSX; | ||
sourceTree = "<group>"; | ||
}; | ||
2C136A5017642680004C7401 /* WebViewJavascriptAbstract */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
2C136A5117642680004C7401 /* WebViewJavascriptBridge.js.txt */, | ||
2C136A5217642680004C7401 /* WebViewJavascriptBridgeAbstract.h */, | ||
2C136A5317642680004C7401 /* WebViewJavascriptBridgeAbstract.m */, | ||
); | ||
path = WebViewJavascriptAbstract; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
2C136A2017641106004C7401 /* ExampleApp-OSX */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = 2C136A3E17641106004C7401 /* Build configuration list for PBXNativeTarget "ExampleApp-OSX" */; | ||
buildPhases = ( | ||
2C136A1D17641106004C7401 /* Sources */, | ||
2C136A1E17641106004C7401 /* Frameworks */, | ||
2C136A1F17641106004C7401 /* Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = "ExampleApp-OSX"; | ||
productName = "ExampleApp-OSX"; | ||
productReference = 2C136A2117641106004C7401 /* ExampleApp-OSX.app */; | ||
productType = "com.apple.product-type.application"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
2C136A1917641106004C7401 /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
LastUpgradeCheck = 0460; | ||
ORGANIZATIONNAME = "Marcus Westin"; | ||
}; | ||
buildConfigurationList = 2C136A1C17641106004C7401 /* Build configuration list for PBXProject "ExampleApp-OSX" */; | ||
compatibilityVersion = "Xcode 3.2"; | ||
developmentRegion = English; | ||
hasScannedForEncodings = 0; | ||
knownRegions = ( | ||
en, | ||
); | ||
mainGroup = 2C136A1817641106004C7401; | ||
productRefGroup = 2C136A2217641106004C7401 /* Products */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
2C136A2017641106004C7401 /* ExampleApp-OSX */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
2C136A1F17641106004C7401 /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
2C136A2F17641106004C7401 /* InfoPlist.strings in Resources */, | ||
2C136A3517641106004C7401 /* Credits.rtf in Resources */, | ||
2C136A4E176421B9004C7401 /* ExampleApp.html in Resources */, | ||
2C136A5617642680004C7401 /* WebViewJavascriptBridge.js.txt in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
2C136A1D17641106004C7401 /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
2C136A3117641106004C7401 /* main.m in Sources */, | ||
2C136A3817641106004C7401 /* AppDelegate.m in Sources */, | ||
2C136A5717642680004C7401 /* WebViewJavascriptBridgeAbstract.m in Sources */, | ||
2C136A5817642680004C7401 /* WebViewJavascriptBridge_OSX.m in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin PBXVariantGroup section */ | ||
2C136A2D17641106004C7401 /* InfoPlist.strings */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
2C136A2E17641106004C7401 /* en */, | ||
); | ||
name = InfoPlist.strings; | ||
sourceTree = "<group>"; | ||
}; | ||
2C136A3317641106004C7401 /* Credits.rtf */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
2C136A3417641106004C7401 /* en */, | ||
); | ||
name = Credits.rtf; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXVariantGroup section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
2C136A3C17641106004C7401 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
ARCHS = "$(ARCHS_STANDARD_64_BIT)"; | ||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
CLANG_WARN_EMPTY_BODY = YES; | ||
CLANG_WARN_ENUM_CONVERSION = YES; | ||
CLANG_WARN_INT_CONVERSION = 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; | ||
}; | ||
2C136A3D17641106004C7401 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
ARCHS = "$(ARCHS_STANDARD_64_BIT)"; | ||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
CLANG_WARN_EMPTY_BODY = YES; | ||
CLANG_WARN_ENUM_CONVERSION = YES; | ||
CLANG_WARN_INT_CONVERSION = 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; | ||
}; | ||
2C136A3F17641106004C7401 /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
COMBINE_HIDPI_IMAGES = YES; | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = "ExampleApp-OSX/ExampleApp-OSX-Prefix.pch"; | ||
INFOPLIST_FILE = "ExampleApp-OSX/ExampleApp-OSX-Info.plist"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
WRAPPER_EXTENSION = app; | ||
}; | ||
name = Debug; | ||
}; | ||
2C136A4017641106004C7401 /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
COMBINE_HIDPI_IMAGES = YES; | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES; | ||
GCC_PREFIX_HEADER = "ExampleApp-OSX/ExampleApp-OSX-Prefix.pch"; | ||
INFOPLIST_FILE = "ExampleApp-OSX/ExampleApp-OSX-Info.plist"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
WRAPPER_EXTENSION = app; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
2C136A1C17641106004C7401 /* Build configuration list for PBXProject "ExampleApp-OSX" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
2C136A3C17641106004C7401 /* Debug */, | ||
2C136A3D17641106004C7401 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
2C136A3E17641106004C7401 /* Build configuration list for PBXNativeTarget "ExampleApp-OSX" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
2C136A3F17641106004C7401 /* Debug */, | ||
2C136A4017641106004C7401 /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 2C136A1917641106004C7401 /* Project object */; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// AppDelegate.h | ||
// ExampleApp-OSX | ||
// | ||
// Created by Marcus Westin on 6/8/13. | ||
// Copyright (c) 2013 Marcus Westin. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
@interface AppDelegate : NSObject <NSApplicationDelegate> | ||
|
||
@property (assign) IBOutlet NSWindow *window; | ||
|
||
@end |
Oops, something went wrong.