# HG changeset patch # User snej@snej.local # Date 1228286576 28800 # Node ID a4875607a3a054971a5314188b179a8dfdfb90e5 # Parent ab88e3ee5726ece55b5f98e56e37c2c2ab178d5d Added iPhone demo project diff -r ab88e3ee5726 -r a4875607a3a0 MYNetwork-iPhone.xcodeproj/project.pbxproj --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MYNetwork-iPhone.xcodeproj/project.pbxproj Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,447 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 45; + objects = { + +/* Begin PBXBuildFile section */ + 1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; }; + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; + 270E9AC00EE61113003F17CA /* IPAddress.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AA20EE61113003F17CA /* IPAddress.m */; }; + 270E9AC10EE61113003F17CA /* TCPConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AA50EE61113003F17CA /* TCPConnection.m */; }; + 270E9AC20EE61113003F17CA /* TCPEndpoint.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AA70EE61113003F17CA /* TCPEndpoint.m */; }; + 270E9AC30EE61113003F17CA /* TCPListener.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AA90EE61113003F17CA /* TCPListener.m */; }; + 270E9AC40EE61113003F17CA /* TCPStream.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AAB0EE61113003F17CA /* TCPStream.m */; }; + 270E9AC50EE61113003F17CA /* TCPWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AAD0EE61113003F17CA /* TCPWriter.m */; }; + 270E9AC60EE61113003F17CA /* BLIPConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AB20EE61113003F17CA /* BLIPConnection.m */; }; + 270E9AC70EE61113003F17CA /* BLIPDispatcher.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AB40EE61113003F17CA /* BLIPDispatcher.m */; }; + 270E9AC80EE61113003F17CA /* BLIPMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AB60EE61113003F17CA /* BLIPMessage.m */; }; + 270E9AC90EE61113003F17CA /* BLIPRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AB80EE61113003F17CA /* BLIPRequest.m */; }; + 270E9ACA0EE61113003F17CA /* BLIPProperties.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9ABA0EE61113003F17CA /* BLIPProperties.m */; }; + 270E9ACB0EE61113003F17CA /* BLIPReader.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9ABC0EE61113003F17CA /* BLIPReader.m */; }; + 270E9ACC0EE61113003F17CA /* BLIPWriter.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9ABE0EE61113003F17CA /* BLIPWriter.m */; }; + 270E9ADF0EE6111A003F17CA /* CollectionUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD10EE6111A003F17CA /* CollectionUtils.m */; }; + 270E9AE00EE6111A003F17CA /* ExceptionUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD30EE6111A003F17CA /* ExceptionUtils.m */; }; + 270E9AE10EE6111A003F17CA /* Logging.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD50EE6111A003F17CA /* Logging.m */; }; + 270E9AE20EE6111A003F17CA /* Target.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD70EE6111A003F17CA /* Target.m */; }; + 270E9AE30EE6111A003F17CA /* Test.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9AD90EE6111A003F17CA /* Test.m */; }; + 270E9AE40EE6111A003F17CA /* GTMNSData+zlib.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9ADD0EE6111A003F17CA /* GTMNSData+zlib.m */; }; + 270E9AE90EE61167003F17CA /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 270E9AE80EE61167003F17CA /* libz.dylib */; }; + 270E9B4F0EE63F8F003F17CA /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 270E9B4E0EE63F8F003F17CA /* CFNetwork.framework */; }; + 270E9B950EE64B3C003F17CA /* HelloWorld.xib in Resources */ = {isa = PBXBuildFile; fileRef = 270E9B940EE64B3C003F17CA /* HelloWorld.xib */; }; + 270E9B990EE64B45003F17CA /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 270E9B960EE64B45003F17CA /* Default.png */; }; + 270E9B9A0EE64B45003F17CA /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 270E9B970EE64B45003F17CA /* Icon.png */; }; + 270E9BA10EE64B4E003F17CA /* HelloWorldAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9B9E0EE64B4E003F17CA /* HelloWorldAppDelegate.m */; }; + 270E9BA20EE64B4E003F17CA /* MyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 270E9BA00EE64B4E003F17CA /* MyViewController.m */; }; + 280E754F0DD40C5E005A515E /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 280E754C0DD40C5E005A515E /* MainWindow.xib */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 1D6058910D05DD3D006BFB54 /* BLIPEcho.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BLIPEcho.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 270E9AA10EE61113003F17CA /* IPAddress.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IPAddress.h; sourceTree = "<group>"; }; + 270E9AA20EE61113003F17CA /* IPAddress.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = IPAddress.m; sourceTree = "<group>"; }; + 270E9AA40EE61113003F17CA /* TCPConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPConnection.h; sourceTree = "<group>"; }; + 270E9AA50EE61113003F17CA /* TCPConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPConnection.m; sourceTree = "<group>"; }; + 270E9AA60EE61113003F17CA /* TCPEndpoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPEndpoint.h; sourceTree = "<group>"; }; + 270E9AA70EE61113003F17CA /* TCPEndpoint.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPEndpoint.m; sourceTree = "<group>"; }; + 270E9AA80EE61113003F17CA /* TCPListener.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPListener.h; sourceTree = "<group>"; }; + 270E9AA90EE61113003F17CA /* TCPListener.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPListener.m; sourceTree = "<group>"; }; + 270E9AAA0EE61113003F17CA /* TCPStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPStream.h; sourceTree = "<group>"; }; + 270E9AAB0EE61113003F17CA /* TCPStream.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPStream.m; sourceTree = "<group>"; }; + 270E9AAC0EE61113003F17CA /* TCPWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCPWriter.h; sourceTree = "<group>"; }; + 270E9AAD0EE61113003F17CA /* TCPWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TCPWriter.m; sourceTree = "<group>"; }; + 270E9AAE0EE61113003F17CA /* TCP_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TCP_Internal.h; sourceTree = "<group>"; }; + 270E9AB00EE61113003F17CA /* BLIP.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIP.h; sourceTree = "<group>"; }; + 270E9AB10EE61113003F17CA /* BLIPConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPConnection.h; sourceTree = "<group>"; }; + 270E9AB20EE61113003F17CA /* BLIPConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPConnection.m; sourceTree = "<group>"; }; + 270E9AB30EE61113003F17CA /* BLIPDispatcher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPDispatcher.h; sourceTree = "<group>"; }; + 270E9AB40EE61113003F17CA /* BLIPDispatcher.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPDispatcher.m; sourceTree = "<group>"; }; + 270E9AB50EE61113003F17CA /* BLIPMessage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPMessage.h; sourceTree = "<group>"; }; + 270E9AB60EE61113003F17CA /* BLIPMessage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPMessage.m; sourceTree = "<group>"; }; + 270E9AB70EE61113003F17CA /* BLIPRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPRequest.h; sourceTree = "<group>"; }; + 270E9AB80EE61113003F17CA /* BLIPRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPRequest.m; sourceTree = "<group>"; }; + 270E9AB90EE61113003F17CA /* BLIPProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPProperties.h; sourceTree = "<group>"; }; + 270E9ABA0EE61113003F17CA /* BLIPProperties.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPProperties.m; sourceTree = "<group>"; }; + 270E9ABB0EE61113003F17CA /* BLIPReader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPReader.h; sourceTree = "<group>"; }; + 270E9ABC0EE61113003F17CA /* BLIPReader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPReader.m; sourceTree = "<group>"; }; + 270E9ABD0EE61113003F17CA /* BLIPWriter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIPWriter.h; sourceTree = "<group>"; }; + 270E9ABE0EE61113003F17CA /* BLIPWriter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BLIPWriter.m; sourceTree = "<group>"; }; + 270E9ABF0EE61113003F17CA /* BLIP_Internal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BLIP_Internal.h; sourceTree = "<group>"; }; + 270E9ACE0EE6111A003F17CA /* MYUtilitiesTest_main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MYUtilitiesTest_main.m; sourceTree = "<group>"; }; + 270E9ACF0EE6111A003F17CA /* MYUtilities_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MYUtilities_Prefix.pch; sourceTree = "<group>"; }; + 270E9AD00EE6111A003F17CA /* CollectionUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollectionUtils.h; sourceTree = "<group>"; }; + 270E9AD10EE6111A003F17CA /* CollectionUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CollectionUtils.m; sourceTree = "<group>"; }; + 270E9AD20EE6111A003F17CA /* ExceptionUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ExceptionUtils.h; sourceTree = "<group>"; }; + 270E9AD30EE6111A003F17CA /* ExceptionUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ExceptionUtils.m; sourceTree = "<group>"; }; + 270E9AD40EE6111A003F17CA /* Logging.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Logging.h; sourceTree = "<group>"; }; + 270E9AD50EE6111A003F17CA /* Logging.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Logging.m; sourceTree = "<group>"; }; + 270E9AD60EE6111A003F17CA /* Target.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Target.h; sourceTree = "<group>"; }; + 270E9AD70EE6111A003F17CA /* Target.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Target.m; sourceTree = "<group>"; }; + 270E9AD80EE6111A003F17CA /* Test.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Test.h; sourceTree = "<group>"; }; + 270E9AD90EE6111A003F17CA /* Test.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Test.m; sourceTree = "<group>"; }; + 270E9ADB0EE6111A003F17CA /* GTMDefines.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GTMDefines.h; sourceTree = "<group>"; }; + 270E9ADC0EE6111A003F17CA /* GTMNSData+zlib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "GTMNSData+zlib.h"; sourceTree = "<group>"; }; + 270E9ADD0EE6111A003F17CA /* GTMNSData+zlib.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "GTMNSData+zlib.m"; sourceTree = "<group>"; }; + 270E9AE80EE61167003F17CA /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; + 270E9B4E0EE63F8F003F17CA /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; }; + 270E9B940EE64B3C003F17CA /* HelloWorld.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HelloWorld.xib; sourceTree = "<group>"; }; + 270E9B960EE64B45003F17CA /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; }; + 270E9B970EE64B45003F17CA /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; }; + 270E9B9D0EE64B4E003F17CA /* HelloWorldAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HelloWorldAppDelegate.h; sourceTree = "<group>"; }; + 270E9B9E0EE64B4E003F17CA /* HelloWorldAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HelloWorldAppDelegate.m; sourceTree = "<group>"; }; + 270E9B9F0EE64B4E003F17CA /* MyViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyViewController.h; sourceTree = "<group>"; }; + 270E9BA00EE64B4E003F17CA /* MyViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyViewController.m; sourceTree = "<group>"; }; + 280E754C0DD40C5E005A515E /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; }; + 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = iPhone/main.m; sourceTree = "<group>"; }; + 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1D60588F0D05DD3D006BFB54 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */, + 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */, + 270E9AE90EE61167003F17CA /* libz.dylib in Frameworks */, + 270E9B4F0EE63F8F003F17CA /* CFNetwork.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 19C28FACFE9D520D11CA2CBB /* Products */ = { + isa = PBXGroup; + children = ( + 1D6058910D05DD3D006BFB54 /* BLIPEcho.app */, + ); + name = Products; + sourceTree = "<group>"; + }; + 270E9A9B0EE61091003F17CA /* iPhone */ = { + isa = PBXGroup; + children = ( + 270E9B9C0EE64B4E003F17CA /* Classes */, + 29B97317FDCFA39411CA2CEA /* Resources */, + ); + path = iPhone; + sourceTree = "<group>"; + tabWidth = 4; + }; + 270E9AA00EE61113003F17CA /* MYNetwork */ = { + isa = PBXGroup; + children = ( + 270E9AA10EE61113003F17CA /* IPAddress.h */, + 270E9AA20EE61113003F17CA /* IPAddress.m */, + 270E9AA30EE61113003F17CA /* TCP */, + 270E9AAF0EE61113003F17CA /* BLIP */, + ); + name = MYNetwork; + sourceTree = "<group>"; + }; + 270E9AA30EE61113003F17CA /* TCP */ = { + isa = PBXGroup; + children = ( + 270E9AA40EE61113003F17CA /* TCPConnection.h */, + 270E9AA50EE61113003F17CA /* TCPConnection.m */, + 270E9AA60EE61113003F17CA /* TCPEndpoint.h */, + 270E9AA70EE61113003F17CA /* TCPEndpoint.m */, + 270E9AA80EE61113003F17CA /* TCPListener.h */, + 270E9AA90EE61113003F17CA /* TCPListener.m */, + 270E9AAA0EE61113003F17CA /* TCPStream.h */, + 270E9AAB0EE61113003F17CA /* TCPStream.m */, + 270E9AAC0EE61113003F17CA /* TCPWriter.h */, + 270E9AAD0EE61113003F17CA /* TCPWriter.m */, + 270E9AAE0EE61113003F17CA /* TCP_Internal.h */, + ); + path = TCP; + sourceTree = "<group>"; + }; + 270E9AAF0EE61113003F17CA /* BLIP */ = { + isa = PBXGroup; + children = ( + 270E9AB00EE61113003F17CA /* BLIP.h */, + 270E9AB10EE61113003F17CA /* BLIPConnection.h */, + 270E9AB20EE61113003F17CA /* BLIPConnection.m */, + 270E9AB30EE61113003F17CA /* BLIPDispatcher.h */, + 270E9AB40EE61113003F17CA /* BLIPDispatcher.m */, + 270E9AB50EE61113003F17CA /* BLIPMessage.h */, + 270E9AB60EE61113003F17CA /* BLIPMessage.m */, + 270E9AB70EE61113003F17CA /* BLIPRequest.h */, + 270E9AB80EE61113003F17CA /* BLIPRequest.m */, + 270E9AB90EE61113003F17CA /* BLIPProperties.h */, + 270E9ABA0EE61113003F17CA /* BLIPProperties.m */, + 270E9ABB0EE61113003F17CA /* BLIPReader.h */, + 270E9ABC0EE61113003F17CA /* BLIPReader.m */, + 270E9ABD0EE61113003F17CA /* BLIPWriter.h */, + 270E9ABE0EE61113003F17CA /* BLIPWriter.m */, + 270E9ABF0EE61113003F17CA /* BLIP_Internal.h */, + ); + path = BLIP; + sourceTree = "<group>"; + }; + 270E9ACD0EE6111A003F17CA /* MYUtilities */ = { + isa = PBXGroup; + children = ( + 270E9ACE0EE6111A003F17CA /* MYUtilitiesTest_main.m */, + 270E9ACF0EE6111A003F17CA /* MYUtilities_Prefix.pch */, + 270E9AD00EE6111A003F17CA /* CollectionUtils.h */, + 270E9AD10EE6111A003F17CA /* CollectionUtils.m */, + 270E9AD20EE6111A003F17CA /* ExceptionUtils.h */, + 270E9AD30EE6111A003F17CA /* ExceptionUtils.m */, + 270E9AD40EE6111A003F17CA /* Logging.h */, + 270E9AD50EE6111A003F17CA /* Logging.m */, + 270E9AD60EE6111A003F17CA /* Target.h */, + 270E9AD70EE6111A003F17CA /* Target.m */, + 270E9AD80EE6111A003F17CA /* Test.h */, + 270E9AD90EE6111A003F17CA /* Test.m */, + 270E9ADA0EE6111A003F17CA /* GoogleToolboxSubset */, + ); + name = MYUtilities; + path = ../MYUtilities; + sourceTree = SOURCE_ROOT; + }; + 270E9ADA0EE6111A003F17CA /* GoogleToolboxSubset */ = { + isa = PBXGroup; + children = ( + 270E9ADB0EE6111A003F17CA /* GTMDefines.h */, + 270E9ADC0EE6111A003F17CA /* GTMNSData+zlib.h */, + 270E9ADD0EE6111A003F17CA /* GTMNSData+zlib.m */, + ); + path = GoogleToolboxSubset; + sourceTree = "<group>"; + }; + 270E9B9C0EE64B4E003F17CA /* Classes */ = { + isa = PBXGroup; + children = ( + 270E9B9D0EE64B4E003F17CA /* HelloWorldAppDelegate.h */, + 270E9B9E0EE64B4E003F17CA /* HelloWorldAppDelegate.m */, + 270E9B9F0EE64B4E003F17CA /* MyViewController.h */, + 270E9BA00EE64B4E003F17CA /* MyViewController.m */, + ); + path = Classes; + sourceTree = "<group>"; + }; + 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { + isa = PBXGroup; + children = ( + 270E9AA00EE61113003F17CA /* MYNetwork */, + 270E9ACD0EE6111A003F17CA /* MYUtilities */, + 270E9A9B0EE61091003F17CA /* iPhone */, + 29B97315FDCFA39411CA2CEA /* Other Sources */, + 29B97323FDCFA39411CA2CEA /* Frameworks */, + 19C28FACFE9D520D11CA2CBB /* Products */, + ); + name = CustomTemplate; + sourceTree = "<group>"; + }; + 29B97315FDCFA39411CA2CEA /* Other Sources */ = { + isa = PBXGroup; + children = ( + 29B97316FDCFA39411CA2CEA /* main.m */, + ); + name = "Other Sources"; + sourceTree = "<group>"; + }; + 29B97317FDCFA39411CA2CEA /* Resources */ = { + isa = PBXGroup; + children = ( + 270E9B940EE64B3C003F17CA /* HelloWorld.xib */, + 280E754C0DD40C5E005A515E /* MainWindow.xib */, + 8D1107310486CEB800E47090 /* Info.plist */, + 270E9B960EE64B45003F17CA /* Default.png */, + 270E9B970EE64B45003F17CA /* Icon.png */, + ); + name = Resources; + sourceTree = "<group>"; + }; + 29B97323FDCFA39411CA2CEA /* Frameworks */ = { + isa = PBXGroup; + children = ( + 1D30AB110D05D00D00671497 /* Foundation.framework */, + 270E9B4E0EE63F8F003F17CA /* CFNetwork.framework */, + 270E9AE80EE61167003F17CA /* libz.dylib */, + 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */, + ); + name = Frameworks; + sourceTree = "<group>"; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1D6058900D05DD3D006BFB54 /* MYNetwork-iPhone */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "MYNetwork-iPhone" */; + buildPhases = ( + 1D60588D0D05DD3D006BFB54 /* Resources */, + 1D60588E0D05DD3D006BFB54 /* Sources */, + 1D60588F0D05DD3D006BFB54 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "MYNetwork-iPhone"; + productName = "MYNetwork-iPhone"; + productReference = 1D6058910D05DD3D006BFB54 /* BLIPEcho.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 29B97313FDCFA39411CA2CEA /* Project object */ = { + isa = PBXProject; + buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MYNetwork-iPhone" */; + compatibilityVersion = "Xcode 3.1"; + hasScannedForEncodings = 1; + knownRegions = ( + English, + Japanese, + French, + German, + en, + ); + mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 1D6058900D05DD3D006BFB54 /* MYNetwork-iPhone */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 1D60588D0D05DD3D006BFB54 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 280E754F0DD40C5E005A515E /* MainWindow.xib in Resources */, + 270E9B950EE64B3C003F17CA /* HelloWorld.xib in Resources */, + 270E9B990EE64B45003F17CA /* Default.png in Resources */, + 270E9B9A0EE64B45003F17CA /* Icon.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 1D60588E0D05DD3D006BFB54 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1D60589B0D05DD56006BFB54 /* main.m in Sources */, + 270E9AC00EE61113003F17CA /* IPAddress.m in Sources */, + 270E9AC10EE61113003F17CA /* TCPConnection.m in Sources */, + 270E9AC20EE61113003F17CA /* TCPEndpoint.m in Sources */, + 270E9AC30EE61113003F17CA /* TCPListener.m in Sources */, + 270E9AC40EE61113003F17CA /* TCPStream.m in Sources */, + 270E9AC50EE61113003F17CA /* TCPWriter.m in Sources */, + 270E9AC60EE61113003F17CA /* BLIPConnection.m in Sources */, + 270E9AC70EE61113003F17CA /* BLIPDispatcher.m in Sources */, + 270E9AC80EE61113003F17CA /* BLIPMessage.m in Sources */, + 270E9AC90EE61113003F17CA /* BLIPRequest.m in Sources */, + 270E9ACA0EE61113003F17CA /* BLIPProperties.m in Sources */, + 270E9ACB0EE61113003F17CA /* BLIPReader.m in Sources */, + 270E9ACC0EE61113003F17CA /* BLIPWriter.m in Sources */, + 270E9ADF0EE6111A003F17CA /* CollectionUtils.m in Sources */, + 270E9AE00EE6111A003F17CA /* ExceptionUtils.m in Sources */, + 270E9AE10EE6111A003F17CA /* Logging.m in Sources */, + 270E9AE20EE6111A003F17CA /* Target.m in Sources */, + 270E9AE30EE6111A003F17CA /* Test.m in Sources */, + 270E9AE40EE6111A003F17CA /* GTMNSData+zlib.m in Sources */, + 270E9BA10EE64B4E003F17CA /* HelloWorldAppDelegate.m in Sources */, + 270E9BA20EE64B4E003F17CA /* MyViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 1D6058940D05DD3E006BFB54 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Jens Alfke"; + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = iPhone/MYNetwork_iPhone_Prefix.pch; + INFOPLIST_FILE = iPhone/Info.plist; + PRODUCT_NAME = BLIPEcho; + PROVISIONING_PROFILE = "166C8314-D005-438F-841B-B20D42F71712"; + }; + name = Debug; + }; + 1D6058950D05DD3E006BFB54 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Jens Alfke"; + COPY_PHASE_STRIP = YES; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = iPhone/MYNetwork_iPhone_Prefix.pch; + INFOPLIST_FILE = iPhone/Info.plist; + PRODUCT_NAME = BLIPEcho; + PROVISIONING_PROFILE = "166C8314-D005-438F-841B-B20D42F71712"; + }; + name = Release; + }; + C01FCF4F08A954540054247B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + ONLY_ACTIVE_ARCH = YES; + PREBINDING = NO; + SDKROOT = iphonesimulator2.0; + }; + name = Debug; + }; + C01FCF5008A954540054247B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + GCC_C_LANGUAGE_STANDARD = c99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + PREBINDING = NO; + SDKROOT = iphonesimulator2.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "MYNetwork-iPhone" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1D6058940D05DD3E006BFB54 /* Debug */, + 1D6058950D05DD3E006BFB54 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + C01FCF4E08A954540054247B /* Build configuration list for PBXProject "MYNetwork-iPhone" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + C01FCF4F08A954540054247B /* Debug */, + C01FCF5008A954540054247B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 29B97313FDCFA39411CA2CEA /* Project object */; +} diff -r ab88e3ee5726 -r a4875607a3a0 TCP/TCPConnection.m --- a/TCP/TCPConnection.m Tue Jul 15 09:37:15 2008 -0700 +++ b/TCP/TCPConnection.m Tue Dec 02 22:42:56 2008 -0800 @@ -14,7 +14,7 @@ #import "ExceptionUtils.h" -#if (TARGET_OS_IPHONE && !(TARGET_OS_MAC || TARGET_OS_EMBEDDED)) +#if TARGET_OS_IPHONE && TARGET_OS_EMBEDDED // SecureTransport.h is missing on iPhone, with its SSL constants: enum{ errSSLClosedAbort = -9806, /* connection closed via error */ diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Classes/HelloWorldAppDelegate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Classes/HelloWorldAppDelegate.h Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,65 @@ +/* + +File: HelloWorldAppDelegate.h +Abstract: Responsible for creating the view controller and adding its view to +the window. + + See the ReadMe file for pointers to additional resources about iPhone +development. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import <UIKit/UIKit.h> + +@class MyViewController; + +@interface HelloWorldAppDelegate : NSObject <UIApplicationDelegate> { + + IBOutlet UIWindow *window; + MyViewController *myViewController; +} + +@property (nonatomic, retain) UIWindow *window; +@property (nonatomic, retain) MyViewController *myViewController; + +@end diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Classes/HelloWorldAppDelegate.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Classes/HelloWorldAppDelegate.m Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,84 @@ +/* + +File: HelloWorldAppDelegate.m +Abstract: Responsible for creating the view controller and adding its view to +the window. + + See the ReadMe file for pointers to additional resources about iPhone +development. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import "HelloWorldAppDelegate.h" +#import "MyViewController.h" + + +@implementation HelloWorldAppDelegate + +@synthesize window; +@synthesize myViewController; + + +- (void)applicationDidFinishLaunching:(UIApplication *)application { + + // Set up the view controller + MyViewController *aViewController = [[MyViewController alloc] initWithNibName:@"HelloWorld" bundle:[NSBundle mainBundle]]; + self.myViewController = aViewController; + [aViewController release]; + + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque]; + + // Add the view controller's view as a subview of the window + UIView *controllersView = [myViewController view]; + [window addSubview:controllersView]; + [window makeKeyAndVisible]; +} + + +- (void)dealloc { + [myViewController release]; + [window release]; + [super dealloc]; +} + +@end diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Classes/MyViewController.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Classes/MyViewController.h Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,68 @@ +/* + +File: MyViewController.h +Abstract: A view controller responsible for managing the Hello World view. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import <UIKit/UIKit.h> +#import "BLIPConnection.h" + +@interface MyViewController : UIViewController <UITextFieldDelegate, + TCPListenerDelegate, + BLIPConnectionDelegate> { + + IBOutlet UITextField *textField; + IBOutlet UILabel *label; + NSString *string; + BLIPListener *_listener; +} + +@property (nonatomic, retain) UITextField *textField; +@property (nonatomic, retain) UILabel *label; +@property (nonatomic, copy) NSString *string; + +- (void)updateString; + +@end + diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Classes/MyViewController.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Classes/MyViewController.m Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,153 @@ +/* + +File: MyViewController.m +Abstract: A view controller responsible for managing the Hello World view. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import "MyViewController.h" +#import "BLIP.h" + + +@implementation MyViewController + +@synthesize textField; +@synthesize label; +@synthesize string; + +- (void)viewDidLoad { + // When the user starts typing, show the clear button in the text field. + textField.clearButtonMode = UITextFieldViewModeWhileEditing; + + label.text = @"Opening listener socket..."; + + _listener = [[BLIPListener alloc] initWithPort: 12345]; + _listener.delegate = self; + _listener.pickAvailablePort = YES; + _listener.bonjourServiceType = @"_blipecho._tcp"; + [_listener open]; +} + + +- (void)updateString { + + // Store the text of the text field in the 'string' instance variable. + self.string = textField.text; + // Set the text of the label to the value of the 'string' instance variable. + label.text = self.string; +} + + +- (BOOL)textFieldShouldReturn:(UITextField *)theTextField { + // When the user presses return, take focus away from the text field so that the keyboard is dismissed. + if (theTextField == textField) { + [textField resignFirstResponder]; + // Invoke the method that changes the greeting. + [self updateString]; + } + return YES; +} + + +- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event +{ + // Dismiss the keyboard when the view outside the text field is touched. + [textField resignFirstResponder]; + // Revert the text field to the previous value. + [super touchesBegan:touches withEvent:event]; +} + + +- (void)dealloc { + [textField release]; + [label release]; + + [_listener close]; + [_listener release]; + + [super dealloc]; +} + + +#pragma mark BLIP Listener Delegate: + + +- (void) listenerDidOpen: (TCPListener*)listener +{ + label.text = [NSString stringWithFormat: @"Listening on port %i",listener.port]; +} + +- (void) listener: (TCPListener*)listener failedToOpen: (NSError*)error +{ + label.text = [NSString stringWithFormat: @"Failed to open listener on port %i: %@", + listener.port,error]; +} + +- (void) listener: (TCPListener*)listener didAcceptConnection: (TCPConnection*)connection +{ + label.text = [NSString stringWithFormat: @"Accepted connection from %@", + connection.address]; + connection.delegate = self; +} + +- (void) connection: (TCPConnection*)connection failedToOpen: (NSError*)error +{ + label.text = [NSString stringWithFormat: @"Failed to open connection from %@: %@", + connection.address,error]; +} + +- (void) connection: (BLIPConnection*)connection receivedRequest: (BLIPRequest*)request +{ + NSString *message = [[NSString alloc] initWithData: request.body encoding: NSUTF8StringEncoding]; + label.text = [NSString stringWithFormat: @"Echoed:\nā%@ā",message]; + [request respondWithData: request.body contentType: request.contentType]; +} + +- (void) connectionDidClose: (TCPConnection*)connection; +{ + label.text = [NSString stringWithFormat: @"Connection closed from %@", + connection.address]; +} + + +@end diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Default.png Binary file iPhone/Default.png has changed diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/HelloWorld.xib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/HelloWorld.xib Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,262 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.02"> + <data> + <int key="IBDocument.SystemTarget">512</int> + <string key="IBDocument.SystemVersion">9F33</string> + <string key="IBDocument.InterfaceBuilderVersion">670</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="24"/> + </object> + <object class="NSArray" key="IBDocument.PluginDependencies"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + </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="223494288"> + <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> + </object> + <object class="IBUIView" id="980997749"> + <reference key="NSNextResponder"/> + <int key="NSvFlags">288</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBUIImageView" id="873065569"> + <reference key="NSNextResponder" ref="980997749"/> + <int key="NSvFlags">292</int> + <string key="NSFrameSize">{320, 480}</string> + <reference key="NSSuperview" ref="980997749"/> + <bool key="IBUIOpaque">NO</bool> + <bool key="IBUIClearsContextBeforeDrawing">NO</bool> + <int key="IBUIContentMode">4</int> + <bool key="IBUIUserInteractionEnabled">NO</bool> + <object class="NSCustomResource" key="IBUIImage"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">Default.png</string> + </object> + </object> + <object class="IBUILabel" id="449159811"> + <reference key="NSNextResponder" ref="980997749"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{20, 48}, {280, 115}}</string> + <reference key="NSSuperview" ref="980997749"/> + <object class="NSColor" key="IBUIBackgroundColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC43NSAwLjIyAA</bytes> + <object class="NSColorSpace" key="NSCustomColorSpace" id="232880016"> + <int key="NSID">2</int> + </object> + </object> + <bool key="IBUIOpaque">NO</bool> + <bool key="IBUIClipsSubviews">YES</bool> + <bool key="IBUIUserInteractionEnabled">NO</bool> + <string key="IBUIText"/> + <object class="NSFont" key="IBUIFont"> + <string key="NSName">Helvetica</string> + <double key="NSSize">2.400000e+01</double> + <int key="NSfFlags">16</int> + </object> + <object class="NSColor" key="IBUITextColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC43NDU5Njc2OSAwLjk5MDAwMDAxAA</bytes> + </object> + <nil key="IBUIHighlightedColor"/> + <int key="IBUIBaselineAdjustment">1</int> + <float key="IBUIMinimumFontSize">2.000000e+01</float> + <int key="IBUINumberOfLines">4</int> + <int key="IBUITextAlignment">1</int> + </object> + <object class="IBUILabel" id="949304106"> + <reference key="NSNextResponder" ref="980997749"/> + <int key="NSvFlags">292</int> + <string key="NSFrame">{{39, 288}, {241, 57}}</string> + <reference key="NSSuperview" ref="980997749"/> + <bool key="IBUIOpaque">NO</bool> + <bool key="IBUIClipsSubviews">YES</bool> + <bool key="IBUIUserInteractionEnabled">NO</bool> + <string key="IBUIText">BLIP Echo</string> + <object class="NSFont" key="IBUIFont"> + <string key="NSName">Helvetica-Bold</string> + <double key="NSSize">4.800000e+01</double> + <int key="NSfFlags">16</int> + </object> + <object class="NSColor" key="IBUITextColor"> + <int key="NSColorSpace">1</int> + <bytes key="NSRGB">MCAwIDAAA</bytes> + </object> + <nil key="IBUIHighlightedColor"/> + <int key="IBUIBaselineAdjustment">1</int> + <float key="IBUIMinimumFontSize">1.000000e+01</float> + <int key="IBUITextAlignment">1</int> + </object> + </object> + <string key="NSFrameSize">{320, 480}</string> + <reference key="NSSuperview"/> + <object class="NSColor" key="IBUIBackgroundColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC41AA</bytes> + <reference key="NSCustomColorSpace" ref="232880016"/> + </object> + <bool key="IBUIClearsContextBeforeDrawing">NO</bool> + </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="980997749"/> + </object> + <int key="connectionID">35</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBCocoaTouchOutletConnection" key="connection"> + <string key="label">label</string> + <reference key="source" ref="372490531"/> + <reference key="destination" ref="449159811"/> + </object> + <int key="connectionID">52</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="360949347"> + <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="360949347"/> + <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">24</int> + <reference key="object" ref="980997749"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="449159811"/> + <reference ref="873065569"/> + <reference ref="949304106"/> + </object> + <reference key="parent" ref="360949347"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-2</int> + <reference key="object" ref="223494288"/> + <reference key="parent" ref="360949347"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">40</int> + <reference key="object" ref="449159811"/> + <reference key="parent" ref="980997749"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">55</int> + <reference key="object" ref="873065569"/> + <reference key="parent" ref="980997749"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">61</int> + <reference key="object" ref="949304106"/> + <reference key="parent" ref="980997749"/> + </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>24.IBEditorWindowLastContentRect</string> + <string>24.IBPluginDependency</string> + <string>40.IBPluginDependency</string> + <string>55.IBPluginDependency</string> + <string>61.IBPluginDependency</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>MyViewController</string> + <string>UIResponder</string> + <string>{{474, 260}, {320, 480}}</string> + <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</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">61</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <object class="NSMutableArray" key="referencedPartialClassDescriptions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBPartialClassDescription"> + <string key="className">MyViewController</string> + <string key="superclassName">UIViewController</string> + <object class="NSMutableDictionary" key="outlets"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>label</string> + <string>textField</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>UILabel</string> + <string>UITextField</string> + </object> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBProjectSource</string> + <string key="minorKey">iPhone/Classes/MyViewController.h</string> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">MyViewController</string> + <string key="superclassName">UIViewController</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">../MYNetwork-iPhone.xcodeproj</string> + <int key="IBDocument.defaultPropertyAccessControl">3</int> + </data> +</archive> diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Icon.png Binary file iPhone/Icon.png has changed diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/Info.plist --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/Info.plist Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,30 @@ +<?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>en</string> + <key>CFBundleDisplayName</key> + <string>BLIP Echo</string> + <key>LSRequiresIPhoneOS</key> + <true/> + <key>CFBundleExecutable</key> + <string>${EXECUTABLE_NAME}</string> + <key>CFBundleIconFile</key> + <string>icon.png</string> + <key>CFBundleIdentifier</key> + <string>com.yourcompany.${PRODUCT_NAME:identifier}</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.7</string> + <key>NSMainNibFile</key> + <string>MainWindow</string> +</dict> +</plist> diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/MYNetwork_iPhone_Prefix.pch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/MYNetwork_iPhone_Prefix.pch Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,8 @@ +// +// Prefix header for all source files of the 'MYNetwork-iPhone' target in the 'MYNetwork-iPhone' project +// + +#ifdef __OBJC__ +#import <Foundation/Foundation.h> +#import <UIKit/UIKit.h> +#endif diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/MainWindow.xib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/MainWindow.xib Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,199 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.02"> + <data> + <int key="IBDocument.SystemTarget">512</int> + <string key="IBDocument.SystemVersion">9F33</string> + <string key="IBDocument.InterfaceBuilderVersion">670</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="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="748124593"> + <string key="IBProxiedObjectIdentifier">IBFirstResponder</string> + </object> + <object class="IBUICustomObject" id="987256611"/> + <object class="IBUIWindow" id="380026005"> + <reference key="NSNextResponder"/> + <int key="NSvFlags">1292</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBUIImageView" id="627919984"> + <reference key="NSNextResponder" ref="380026005"/> + <int key="NSvFlags">1316</int> + <string key="NSFrameSize">{320, 480}</string> + <reference key="NSSuperview" ref="380026005"/> + <bool key="IBUIOpaque">NO</bool> + <bool key="IBUIClearsContextBeforeDrawing">NO</bool> + <int key="IBUIContentMode">4</int> + <bool key="IBUIUserInteractionEnabled">NO</bool> + <object class="NSCustomResource" key="IBUIImage"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">Default.png</string> + </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">1</int> + <bytes key="NSRGB">MSAxIDEAA</bytes> + </object> + <bool key="IBUIOpaque">NO</bool> + <bool key="IBUIClearsContextBeforeDrawing">NO</bool> + </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="987256611"/> + </object> + <int key="connectionID">6</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBCocoaTouchOutletConnection" key="connection"> + <string key="label">window</string> + <reference key="source" ref="987256611"/> + <reference key="destination" ref="380026005"/> + </object> + <int key="connectionID">7</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="627919984"/> + </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">4</int> + <reference key="object" ref="987256611"/> + <reference key="parent" ref="957960031"/> + <string key="objectName">HelloWorldAppDelegate</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-2</int> + <reference key="object" ref="748124593"/> + <reference key="parent" ref="957960031"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">8</int> + <reference key="object" ref="627919984"/> + <reference key="parent" ref="380026005"/> + </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>2.IBAttributePlaceholdersKey</string> + <string>2.IBEditorWindowLastContentRect</string> + <string>2.IBPluginDependency</string> + <string>2.UIWindow.visibleAtLaunch</string> + <string>4.CustomClassName</string> + <string>4.IBPluginDependency</string> + <string>8.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> + <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>{{474, 333}, {320, 480}}</string> + <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string> + <integer value="1"/> + <string>HelloWorldAppDelegate</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">8</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <object class="NSMutableArray" key="referencedPartialClassDescriptions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBPartialClassDescription"> + <string key="className">HelloWorldAppDelegate</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">iPhone/Classes/HelloWorldAppDelegate.h</string> + </object> + </object> + </object> + </object> + <int key="IBDocument.localizationMode">0</int> + <string key="IBDocument.LastKnownRelativeProjectPath">../MYNetwork-iPhone.xcodeproj</string> + <int key="IBDocument.defaultPropertyAccessControl">3</int> + </data> +</archive> diff -r ab88e3ee5726 -r a4875607a3a0 iPhone/main.m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/iPhone/main.m Tue Dec 02 22:42:56 2008 -0800 @@ -0,0 +1,56 @@ +/* + +File: main.m +Abstract: Standard main file. + +Version: 1.7 + +Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. +("Apple") in consideration of your agreement to the following terms, and your +use, installation, modification or redistribution of this Apple software +constitutes acceptance of these terms. If you do not agree with these terms, +please do not use, install, modify or redistribute this Apple software. + +In consideration of your agreement to abide by the following terms, and subject +to these terms, Apple grants you a personal, non-exclusive license, under +Apple's copyrights in this original Apple software (the "Apple Software"), to +use, reproduce, modify and redistribute the Apple Software, with or without +modifications, in source and/or binary forms; provided that if you redistribute +the Apple Software in its entirety and without modifications, you must retain +this notice and the following text and disclaimers in all such redistributions +of the Apple Software. +Neither the name, trademarks, service marks or logos of Apple Inc. may be used +to endorse or promote products derived from the Apple Software without specific +prior written permission from Apple. Except as expressly stated in this notice, +no other rights or licenses, express or implied, are granted by Apple herein, +including but not limited to any patent rights that may be infringed by your +derivative works or by other works in which the Apple Software may be +incorporated. + +The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO +WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED +WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN +COMBINATION WITH YOUR PRODUCTS. + +IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR +DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF +CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF +APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Copyright (C) 2008 Apple Inc. All Rights Reserved. + +*/ + +#import <UIKit/UIKit.h> + +int main(int argc, char *argv[]) +{ + NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + int retVal = UIApplicationMain(argc, argv, nil, nil); + [pool release]; + return retVal; +}