forked from lorenbrichter/SimFinger
-
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.
- Loading branch information
Loren Brichter
committed
May 16, 2009
1 parent
e9f45f1
commit 4415d9a
Showing
185 changed files
with
8,759 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,20 @@ | ||
// | ||
// FakePhoneAppDelegate.h | ||
// FakePhone | ||
// | ||
// Created by Loren Brichter on 2/11/09. | ||
// Copyright atebits 2009. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface FakePhoneAppDelegate : NSObject <UIApplicationDelegate, UIPickerViewDelegate, UIPickerViewDataSource> | ||
{ | ||
IBOutlet UIPickerView *picker; | ||
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,50 @@ | ||
// | ||
// FakePhoneAppDelegate.m | ||
// FakePhone | ||
// | ||
// Created by Loren Brichter on 2/11/09. | ||
// Copyright atebits 2009. All rights reserved. | ||
// | ||
|
||
#import "FakePhoneAppDelegate.h" | ||
|
||
@implementation FakePhoneAppDelegate | ||
|
||
@synthesize window; | ||
|
||
- (void)applicationDidFinishLaunching:(UIApplication *)application | ||
{ | ||
[window makeKeyAndVisible]; | ||
[picker selectRow:[UIApplication sharedApplication].applicationIconBadgeNumber inComponent:0 animated:NO]; | ||
} | ||
|
||
- (void)dealloc | ||
{ | ||
[window release]; | ||
[super dealloc]; | ||
} | ||
|
||
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView | ||
{ | ||
return 1; | ||
} | ||
|
||
- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component | ||
{ | ||
return 21; | ||
} | ||
|
||
// these methods return either a plain UIString, or a view (e.g UILabel) to display the row for the component. | ||
// for the view versions, we cache any hidden and thus unused views and pass them back for reuse. | ||
// If you return back a different object, the old one will be released. the view will be centered in the row rect | ||
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component | ||
{ | ||
return [NSString stringWithFormat:@"%d", row]; | ||
} | ||
|
||
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component | ||
{ | ||
[UIApplication sharedApplication].applicationIconBadgeNumber = row; | ||
} | ||
|
||
@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,277 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.03"> | ||
<data> | ||
<int key="IBDocument.SystemTarget">528</int> | ||
<string key="IBDocument.SystemVersion">9F33</string> | ||
<string key="IBDocument.InterfaceBuilderVersion">677</string> | ||
<string key="IBDocument.AppKitVersion">949.34</string> | ||
<string key="IBDocument.HIToolboxVersion">352.00</string> | ||
<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"> | ||
<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="NSMutableArray" key="NSSubviews"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="IBUIPickerView" id="20118392"> | ||
<reference key="NSNextResponder" ref="380026005"/> | ||
<int key="NSvFlags">1316</int> | ||
<string key="NSFrame">{{0, 264}, {320, 216}}</string> | ||
<reference key="NSSuperview" ref="380026005"/> | ||
<bool key="IBUIOpaque">NO</bool> | ||
<bool key="IBUIClipsSubviews">YES</bool> | ||
<bool key="IBUIMultipleTouchEnabled">YES</bool> | ||
<bool key="IBUIShowsSelectionIndicator">YES</bool> | ||
</object> | ||
<object class="IBUINavigationBar" id="397375642"> | ||
<reference key="NSNextResponder" ref="380026005"/> | ||
<int key="NSvFlags">1314</int> | ||
<string key="NSFrame">{{0, 20}, {320, 44}}</string> | ||
<reference key="NSSuperview" ref="380026005"/> | ||
<bool key="IBUIOpaque">NO</bool> | ||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool> | ||
<object class="NSArray" key="IBUIItems"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="IBUINavigationItem" id="433132818"> | ||
<reference key="IBUINavigationBar" ref="397375642"/> | ||
<string key="IBUITitle">Fake App</string> | ||
</object> | ||
</object> | ||
</object> | ||
</object> | ||
<object class="NSPSMatrix" key="NSFrameMatrix"/> | ||
<string key="NSFrameSize">{320, 480}</string> | ||
<reference key="NSSuperview"/> | ||
<object class="NSColor" key="IBUIBackgroundColor"> | ||
<int key="NSColorSpace">2</int> | ||
<bytes key="NSRGB">MC44NDMxMzczMiAwLjg0MzEzNzMyIDAuODU0OTAyMDMAA</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 class="IBConnectionRecord"> | ||
<object class="IBCocoaTouchOutletConnection" key="connection"> | ||
<string key="label">dataSource</string> | ||
<reference key="source" ref="20118392"/> | ||
<reference key="destination" ref="664661524"/> | ||
</object> | ||
<int key="connectionID">15</int> | ||
</object> | ||
<object class="IBConnectionRecord"> | ||
<object class="IBCocoaTouchOutletConnection" key="connection"> | ||
<string key="label">delegate</string> | ||
<reference key="source" ref="20118392"/> | ||
<reference key="destination" ref="664661524"/> | ||
</object> | ||
<int key="connectionID">16</int> | ||
</object> | ||
<object class="IBConnectionRecord"> | ||
<object class="IBCocoaTouchOutletConnection" key="connection"> | ||
<string key="label">picker</string> | ||
<reference key="source" ref="664661524"/> | ||
<reference key="destination" ref="20118392"/> | ||
</object> | ||
<int key="connectionID">17</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> | ||
<object class="NSArray" key="object" id="957960031"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
<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> | ||
<reference ref="397375642"/> | ||
<reference ref="20118392"/> | ||
</object> | ||
<reference key="parent" ref="957960031"/> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">-1</int> | ||
<reference key="object" ref="841351856"/> | ||
<reference key="parent" ref="957960031"/> | ||
<string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">3</int> | ||
<reference key="object" ref="664661524"/> | ||
<reference key="parent" ref="957960031"/> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">-2</int> | ||
<reference key="object" ref="427554174"/> | ||
<reference key="parent" ref="957960031"/> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">10</int> | ||
<reference key="object" ref="20118392"/> | ||
<reference key="parent" ref="380026005"/> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">11</int> | ||
<reference key="object" ref="397375642"/> | ||
<object class="NSMutableArray" key="children"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<reference ref="433132818"/> | ||
</object> | ||
<reference key="parent" ref="380026005"/> | ||
</object> | ||
<object class="IBObjectRecord"> | ||
<int key="objectID">12</int> | ||
<reference key="object" ref="433132818"/> | ||
<reference key="parent" ref="397375642"/> | ||
</object> | ||
</object> | ||
</object> | ||
<object class="NSMutableDictionary" key="flattenedProperties"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="NSMutableArray" key="dict.sortedKeys"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<string>-1.CustomClassName</string> | ||
<string>-2.CustomClassName</string> | ||
<string>10.IBPluginDependency</string> | ||
<string>11.IBPluginDependency</string> | ||
<string>12.IBPluginDependency</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> | ||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
<object class="NSMutableDictionary"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="NSArray" key="dict.sortedKeys"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
<object class="NSMutableArray" key="dict.values"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
</object> | ||
<string>{{879, 220}, {320, 480}}</string> | ||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
<string>FakePhoneAppDelegate</string> | ||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> | ||
</object> | ||
</object> | ||
<object class="NSMutableDictionary" key="unlocalizedProperties"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="NSArray" key="dict.sortedKeys"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
<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> | ||
<object class="NSArray" key="dict.sortedKeys"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
<object class="NSMutableArray" key="dict.values"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
</object> | ||
</object> | ||
<nil key="sourceID"/> | ||
<int key="maxID">17</int> | ||
</object> | ||
<object class="IBClassDescriber" key="IBDocument.Classes"> | ||
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="IBPartialClassDescription"> | ||
<string key="className">FakePhoneAppDelegate</string> | ||
<string key="superclassName">NSObject</string> | ||
<object class="NSMutableDictionary" key="outlets"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<object class="NSMutableArray" key="dict.sortedKeys"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<string>picker</string> | ||
<string>window</string> | ||
</object> | ||
<object class="NSMutableArray" key="dict.values"> | ||
<bool key="EncodedWithXMLCoder">YES</bool> | ||
<string>UIPickerView</string> | ||
<string>UIWindow</string> | ||
</object> | ||
</object> | ||
<object class="IBClassDescriptionSource" key="sourceIdentifier"> | ||
<string key="majorKey">IBProjectSource</string> | ||
<string key="minorKey">Classes/FakePhoneAppDelegate.h</string> | ||
</object> | ||
</object> | ||
<object class="IBPartialClassDescription"> | ||
<string key="className">FakePhoneAppDelegate</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> | ||
<string key="IBDocument.LastKnownRelativeProjectPath">FakePhone.xcodeproj</string> | ||
<int key="IBDocument.defaultPropertyAccessControl">3</int> | ||
</data> | ||
</archive> |
Oops, something went wrong.