Navigation Menu

Skip to content

Commit

Permalink
Updated with a nod to the 3.0 Device Capabilities for Info.plist
Browse files Browse the repository at this point in the history
  • Loading branch information
Erica Sadun authored and Erica Sadun committed Aug 4, 2009
1 parent 0bb15c1 commit 41969fe
Show file tree
Hide file tree
Showing 16 changed files with 830 additions and 336 deletions.
File renamed without changes.
File renamed without changes.
Binary file added Default.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
131 changes: 85 additions & 46 deletions HelloWorld.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

223 changes: 223 additions & 0 deletions TestBedViewController.xib
@@ -0,0 +1,223 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.03">
<data>
<int key="IBDocument.SystemTarget">768</int>
<string key="IBDocument.SystemVersion">9J61</string>
<string key="IBDocument.InterfaceBuilderVersion">680</string>
<string key="IBDocument.AppKitVersion">949.46</string>
<string key="IBDocument.HIToolboxVersion">353.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="35"/>
</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="372490531">
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
</object>
<object class="IBProxyObject" id="843779117">
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
</object>
<object class="IBUIView" id="440620744">
<reference key="NSNextResponder"/>
<int key="NSvFlags">292</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBUIImageView" id="1064941195">
<reference key="NSNextResponder" ref="440620744"/>
<int key="NSvFlags">256</int>
<string key="NSFrameSize">{320, 416}</string>
<reference key="NSSuperview" ref="440620744"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">4</int>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<object class="NSCustomResource" key="IBUIImage">
<string key="NSClassName">NSImage</string>
<string key="NSResourceName">cover320x416.png</string>
</object>
</object>
<object class="IBUITextView" id="311618606">
<reference key="NSNextResponder" ref="440620744"/>
<int key="NSvFlags">292</int>
<string key="NSFrameSize">{320, 279}</string>
<reference key="NSSuperview" ref="440620744"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<bool key="IBUIMultipleTouchEnabled">YES</bool>
<bool key="IBUIShowsHorizontalScrollIndicator">NO</bool>
<bool key="IBUIDelaysContentTouches">NO</bool>
<bool key="IBUICanCancelContentTouches">NO</bool>
<bool key="IBUIBouncesZoom">NO</bool>
<bool key="IBUIEditable">NO</bool>
<string key="IBUIText"/>
<object class="IBUITextInputTraits" key="IBUITextInputTraits">
<int key="IBUIAutocapitalizationType">2</int>
</object>
</object>
</object>
<string key="NSFrameSize">{320, 416}</string>
<reference key="NSSuperview"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
<object class="NSColorSpace" key="NSCustomColorSpace">
<int key="NSID">2</int>
</object>
</object>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics">
<bool key="IBUIPrompted">NO</bool>
</object>
</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">view</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="440620744"/>
</object>
<int key="connectionID">33</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">textView</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="311618606"/>
</object>
<int key="connectionID">36</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="884947135">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
<reference key="children" ref="1000"/>
<nil key="parent"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">-1</int>
<reference key="object" ref="372490531"/>
<reference key="parent" ref="884947135"/>
<string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
</object>
<object class="IBObjectRecord">
<int key="objectID">-2</int>
<reference key="object" ref="843779117"/>
<reference key="parent" ref="884947135"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">32</int>
<reference key="object" ref="440620744"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="1064941195"/>
<reference ref="311618606"/>
</object>
<reference key="parent" ref="884947135"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">34</int>
<reference key="object" ref="1064941195"/>
<reference key="parent" ref="440620744"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">35</int>
<reference key="object" ref="311618606"/>
<reference key="parent" ref="440620744"/>
</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>32.IBEditorWindowLastContentRect</string>
<string>32.IBPluginDependency</string>
<string>35.IBPluginDependency</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>TestBedViewController</string>
<string>UIResponder</string>
<string>{{21, 492}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</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">36</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
<string key="className">TestBedViewController</string>
<object class="NSMutableDictionary" key="outlets">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>textView</string>
<string>view</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>UITextView</string>
<string>UIView</string>
</object>
</object>
<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">HelloWorld.xcodeproj</string>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
<string key="IBCocoaTouchPluginVersion">3.1</string>
</data>
</archive>
24 changes: 0 additions & 24 deletions UIApplication-Proximity.h

This file was deleted.

14 changes: 0 additions & 14 deletions UIApplication-Proximity.m

This file was deleted.

56 changes: 33 additions & 23 deletions UIDevice-Hardware.h
Expand Up @@ -8,12 +8,15 @@

#define IPHONE_1G_NAMESTRING @"iPhone 1G"
#define IPHONE_3G_NAMESTRING @"iPhone 3G"
#define IPHONE_3GS_NAMESTRING @"iPhone 3G S"
#define IPHONE_3GS_NAMESTRING @"iPhone 3GS"
#define IPHONE_UNKNOWN_NAMESTRING @"Unknown iPhone"

#define IPOD_1G_NAMESTRING @"iPod touch 1G"
#define IPOD_2G_NAMESTRING @"iPod touch 2G"
#define IPOD_UNKNOWN_NAMESTRING @"Unknown iPod"

#define IPOD_FAMILY_UNKNOWN_DEVICE @"Unknown device in the iPhone/iPod family"

#define IPHONE_SIMULATOR_NAMESTRING @"iPhone Simulator"

typedef enum {
Expand All @@ -34,34 +37,41 @@ typedef enum {
} UIDeviceFirmware;

enum {
UIDeviceSupportsGPS = 1 << 0,
UIDeviceBuiltInSpeaker = 1 << 1,
UIDeviceBuiltInCamera = 1 << 2,
UIDeviceBuiltInMicrophone = 1 << 3,
UIDeviceSupportsExternalMicrophone = 1 << 4,
UIDeviceSupportsTelephony = 1 << 5,
UIDeviceSupportsVibration = 1 << 6,
UIDeviceBuiltInProximitySensor = 1 << 7,
UIDeviceSupportsVideoRecording = 1 << 8,
UIDeviceSupportsCompass = 1 << 9,
UIDeviceSupportsAccessibility = 1 << 10,
UIDeviceSupportsVoiceControl = 1 << 11,
UIDeviceSupportsTelephony = 1 << 0,
UIDeviceSupportsSMS = 1 << 1,
UIDeviceSupportsStillCamera = 1 << 2,
UIDeviceSupportsVideoCamera = 1 << 3,
UIDeviceSupportsWifi = 1 << 4,
UIDeviceSupportsAccelerometer = 1 << 5,
UIDeviceSupportsLocationServices = 1 << 6,
UIDeviceSupportsGPS = 1 << 7,
UIDeviceSupportsMagnetometer = 1 << 8,
UIDeviceSupportsBuiltInMicrophone = 1 << 9,
UIDeviceSupportsExternalMicrophone = 1 << 10,
UIDeviceSupportsOPENGLES1 = 1 << 11,
UIDeviceSupportsOPENGLES2 = 1 << 12,
UIDeviceBuiltInSpeaker = 1 << 13,
UIDeviceSupportsVibration = 1 << 14,
UIDeviceBuiltInProximitySensor = 1 << 15,
UIDeviceSupportsAccessibility = 1 << 16,
UIDeviceSupportsVoiceControl = 1 << 17,
UIDeviceSupportsBrightnessSensor = 1 << 18,
};

@interface UIDevice (Hardware)

- (NSString *) platform;
- (NSUInteger) platformType;
- (NSUInteger) platformCapabilities;
- (NSString *) platformString;
+ (NSString *) platform;
+ (NSUInteger) platformType;
+ (NSUInteger) platformCapabilities;
+ (NSString *) platformString;
+ (NSString *) platformCode;

- (NSUInteger) cpuFrequency;
- (NSUInteger) busFrequency;
- (NSUInteger) totalMemory;
- (NSUInteger) userMemory;
- (NSUInteger) maxSocketBufferSize;
+ (NSUInteger) cpuFrequency;
+ (NSUInteger) busFrequency;
+ (NSUInteger) totalMemory;
+ (NSUInteger) userMemory;

- (NSString *) macaddress;
+ (NSString *) macaddress;
@end

@interface UIDevice (Orientation)
Expand Down

0 comments on commit 41969fe

Please sign in to comment.