Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
144ef2b
commit 7a185ac
Showing
19 changed files
with
2,426 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,12 @@ | ||
// Many protocols will work from wax out of the box. But some need to be preloaded. | ||
// If the protocol you are using isn't found, just add the protocol to this object | ||
// | ||
// This seems to be a bug, or there is a runtime method I'm unaware of | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface ProtocolLoader : NSObject <UIWebViewDelegate, UIActionSheetDelegate, UIAlertViewDelegate> {} | ||
@end | ||
|
||
@implementation ProtocolLoader | ||
@end |
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,18 @@ | ||
// | ||
// StatesAppDelegate.h | ||
// States | ||
// | ||
// Created by Corey Johnson on 9/28/09. | ||
// Copyright __MyCompanyName__ 2009. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface StatesAppDelegate : NSObject <UIApplicationDelegate> { | ||
UIWindow *window; | ||
} | ||
|
||
@property (nonatomic, retain) IBOutlet UIWindow *window; | ||
|
||
@end | ||
|
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,34 @@ | ||
// | ||
// StatesAppDelegate.m | ||
// States | ||
// | ||
// Created by Corey Johnson on 9/28/09. | ||
// Copyright __MyCompanyName__ 2009. All rights reserved. | ||
|
||
#import "StatesAppDelegate.h" | ||
|
||
#import "ProtocolLoader.h" | ||
#import "WaxTextField.h" | ||
|
||
#import "wax.h" | ||
|
||
@implementation StatesAppDelegate | ||
|
||
@synthesize window; | ||
|
||
- (void)dealloc { | ||
[window release]; | ||
[super dealloc]; | ||
} | ||
|
||
- (void)applicationDidFinishLaunching:(UIApplication *)application { | ||
[window makeKeyAndVisible]; | ||
|
||
wax_start(); | ||
|
||
// If you want to load wax with some extensions use this function | ||
//wax_startWithExtensions(luaopen_HTTPotluck, luaopen_json, nil); | ||
} | ||
|
||
|
||
@end |
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,33 @@ | ||
// UITextInputTraits are inaccessable via the runtime (not sure why). | ||
// This is a hack to access them via wax | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface WaxTextField : UITextField {} | ||
|
||
- (UIKeyboardType)keyboardType; | ||
- (void)setKeyboardType:(UIKeyboardType)type; | ||
|
||
- (UIReturnKeyType)returnKeyType; | ||
- (void)setReturnKeyType:(UIReturnKeyType)type; | ||
|
||
@end | ||
|
||
@implementation WaxTextField | ||
- (UIKeyboardType)keyboardType { | ||
return [super keyboardType]; | ||
} | ||
|
||
- (void)setKeyboardType:(UIKeyboardType)type { | ||
[super setKeyboardType:type]; | ||
} | ||
|
||
- (UIReturnKeyType)returnKeyType { | ||
return [super returnKeyType]; | ||
} | ||
|
||
- (void)setReturnKeyType:(UIReturnKeyType)type { | ||
[super setReturnKeyType:type]; | ||
} | ||
|
||
@end |
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,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>get-task-allow</key> | ||
<false/> | ||
</dict> | ||
</plist> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,190 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10"> | ||
<data> | ||
<int key="IBDocument.SystemTarget">768</int> | ||
<string key="IBDocument.SystemVersion">10A288</string> | ||
<string key="IBDocument.InterfaceBuilderVersion">715</string> | ||
<string key="IBDocument.AppKitVersion">1010</string> | ||
<string key="IBDocument.HIToolboxVersion">411.00</string> | ||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions"> | ||
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
<string key="NS.object.0">46</string> | ||
</object> | ||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<integer value="2"/> | ||
</object> | ||
<object class="NSArray" key="IBDocument.PluginDependencies"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
</object> | ||
<object class="NSMutableDictionary" key="IBDocument.Metadata"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="NSArray" key="dict.sortedKeys" id="0"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
<object class="NSMutableArray" key="dict.values"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
</object> | ||
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="IBProxyObject" id="841351856"> | ||
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string> | ||
</object> | ||
<object class="IBProxyObject" id="427554174"> | ||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string> | ||
</object> | ||
<object class="IBUICustomObject" id="664661524"/> | ||
<object class="IBUIWindow" id="380026005"> | ||
<reference key="NSNextResponder"/> | ||
<int key="NSvFlags">1316</int> | ||
<object class="NSPSMatrix" key="NSFrameMatrix"/> | ||
<string key="NSFrameSize">{320, 480}</string> | ||
<reference key="NSSuperview"/> | ||
<object class="NSColor" key="IBUIBackgroundColor"> | ||
<int key="NSColorSpace">1</int> | ||
<bytes key="NSRGB">MSAxIDEAA</bytes> | ||
</object> | ||
<bool key="IBUIOpaque">NO</bool> | ||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool> | ||
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/> | ||
</object> | ||
</object> | ||
<object class="IBObjectContainer" key="IBDocument.Objects"> | ||
<object class="NSMutableArray" key="connectionRecords"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="IBConnectionRecord"> | ||
<object class="IBCocoaTouchOutletConnection" key="connection"> | ||
<string key="label">delegate</string> | ||
<reference key="source" ref="841351856"/> | ||
<reference key="destination" ref="664661524"/> | ||
</object> | ||
<int key="connectionID">4</int> | ||
</object> | ||
<object class="IBConnectionRecord"> | ||
<object class="IBCocoaTouchOutletConnection" key="connection"> | ||
<string key="label">window</string> | ||
<reference key="source" ref="664661524"/> | ||
<reference key="destination" ref="380026005"/> | ||
</object> | ||
<int key="connectionID">5</int> | ||
</object> | ||
</object> | ||
<object class="IBMutableOrderedSet" key="objectRecords"> | ||
<object class="NSArray" key="orderedObjects"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">0</int> | ||
<reference key="object" ref="0"/> | ||
<reference key="children" ref="1000"/> | ||
<nil key="parent"/> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">2</int> | ||
<reference key="object" ref="380026005"/> | ||
<object class="NSMutableArray" key="children"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
<reference key="parent" ref="0"/> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">-1</int> | ||
<reference key="object" ref="841351856"/> | ||
<reference key="parent" ref="0"/> | ||
<string key="objectName">File's Owner</string> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">3</int> | ||
<reference key="object" ref="664661524"/> | ||
<reference key="parent" ref="0"/> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">-2</int> | ||
<reference key="object" ref="427554174"/> | ||
<reference key="parent" ref="0"/> | ||
</object> | ||
</object> | ||
</object> | ||
<object class="NSMutableDictionary" key="flattenedProperties"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="NSArray" key="dict.sortedKeys"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<string>-1.CustomClassName</string> | ||
<string>-2.CustomClassName</string> | ||
<string>2.IBAttributePlaceholdersKey</string> | ||
<string>2.IBEditorWindowLastContentRect</string> | ||
<string>2.IBPluginDependency</string> | ||
<string>3.CustomClassName</string> | ||
<string>3.IBPluginDependency</string> | ||
</object> | ||
<object class="NSMutableArray" key="dict.values"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<string>UIApplication</string> | ||
<string>UIResponder</string> | ||
<object class="NSMutableDictionary"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<reference key="dict.sortedKeys" ref="0"/> | ||
<object class="NSMutableArray" key="dict.values"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
</object> | ||
<string>{{438, 320}, {320, 480}}</string> | ||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
<string>StatesAppDelegate</string> | ||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
</object> | ||
</object> | ||
<object class="NSMutableDictionary" key="unlocalizedProperties"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<reference key="dict.sortedKeys" ref="0"/> | ||
<object class="NSMutableArray" key="dict.values"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
</object> | ||
<nil key="activeLocalization"/> | ||
<object class="NSMutableDictionary" key="localizations"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<reference key="dict.sortedKeys" ref="0"/> | ||
<object class="NSMutableArray" key="dict.values"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
</object> | ||
<nil key="sourceID"/> | ||
<int key="maxID">9</int> | ||
</object> | ||
<object class="IBClassDescriber" key="IBDocument.Classes"> | ||
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="IBPartialClassDescription"> | ||
<string key="className">StatesAppDelegate</string> | ||
<string key="superclassName">NSObject</string> | ||
<object class="NSMutableDictionary" key="outlets"> | ||
<string key="NS.key.0">window</string> | ||
<string key="NS.object.0">UIWindow</string> | ||
</object> | ||
<object class="IBClassDescriptionSource" key="sourceIdentifier"> | ||
<string key="majorKey">IBProjectSource</string> | ||
<string key="minorKey">Classes/StatesAppDelegate.h</string> | ||
</object> | ||
</object> | ||
<object class="IBPartialClassDescription"> | ||
<string key="className">StatesAppDelegate</string> | ||
<string key="superclassName">NSObject</string> | ||
<object class="IBClassDescriptionSource" key="sourceIdentifier"> | ||
<string key="majorKey">IBUserSource</string> | ||
<string key="minorKey"/> | ||
</object> | ||
</object> | ||
</object> | ||
</object> | ||
<int key="IBDocument.localizationMode">0</int> | ||
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies"> | ||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string> | ||
<integer value="3100" key="NS.object.0"/> | ||
</object> | ||
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool> | ||
<string key="IBDocument.LastKnownRelativeProjectPath">States.xcodeproj</string> | ||
<int key="IBDocument.defaultPropertyAccessControl">3</int> | ||
</data> | ||
</archive> |
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,32 @@ | ||
<?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>CFBundleDisplayName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundleDocumentTypes</key> | ||
<array/> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIconFile</key> | ||
<string>Icon.png</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>NSMainNibFile</key> | ||
<string>MainWindow</string> | ||
</dict> | ||
</plist> |
Oops, something went wrong.