diff --git a/samples/TTTwitter/Classes/AppDelegate.m b/samples/TTTwitter/Classes/AppDelegate.m index 937cf10544..a58c08b1d5 100644 --- a/samples/TTTwitter/Classes/AppDelegate.m +++ b/samples/TTTwitter/Classes/AppDelegate.m @@ -26,7 +26,7 @@ @implementation AppDelegate /////////////////////////////////////////////////////////////////////////////////////////////////// - (void)applicationDidFinishLaunching:(UIApplication *)application { TTNavigator* navigator = [TTNavigator navigator]; - navigator.persistenceMode = TTNavigatorPersistenceModeAll; + navigator.persistenceMode = TTNavigatorPersistenceModeNone; TTURLMap* map = navigator.URLMap; diff --git a/samples/TTTwitter/Classes/Atlas.h b/samples/TTTwitter/Classes/Atlas.h new file mode 100644 index 0000000000..31a02fe300 --- /dev/null +++ b/samples/TTTwitter/Classes/Atlas.h @@ -0,0 +1,19 @@ +// +// Copyright 2009-2010 Facebook +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#import + +extern NSString* kAppRootURLPath; diff --git a/samples/TTTwitter/Classes/Atlas.m b/samples/TTTwitter/Classes/Atlas.m new file mode 100644 index 0000000000..fabf6e96c2 --- /dev/null +++ b/samples/TTTwitter/Classes/Atlas.m @@ -0,0 +1,19 @@ +// +// Copyright 2009-2010 Facebook +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +#import "Atlas.h" + +NSString* kAppRootURLPath = @"tt://root"; diff --git a/samples/TTTwitter/TTTwitter.xcodeproj/project.pbxproj b/samples/TTTwitter/TTTwitter.xcodeproj/project.pbxproj index 5e20a6ab08..9aa1a6fd2d 100755 --- a/samples/TTTwitter/TTTwitter.xcodeproj/project.pbxproj +++ b/samples/TTTwitter/TTTwitter.xcodeproj/project.pbxproj @@ -12,6 +12,7 @@ 1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; }; 1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; }; 288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; }; + 6E10599C112CCCC400549F42 /* Atlas.m in Sources */ = {isa = PBXBuildFile; fileRef = 6E10599B112CCCC400549F42 /* Atlas.m */; }; EB383B6110BBF6200000B2D2 /* libThree20.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EB383B5F10BBF6180000B2D2 /* libThree20.a */; }; EB383B6510BBF62B0000B2D2 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EB383B6410BBF62B0000B2D2 /* QuartzCore.framework */; }; EB383B6D10BBF6360000B2D2 /* Three20.bundle in Resources */ = {isa = PBXBuildFile; fileRef = EB383B6C10BBF6360000B2D2 /* Three20.bundle */; }; @@ -50,6 +51,8 @@ 288765FC0DF74451002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 32CA4F630368D1EE00C91783 /* TTTwitter_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TTTwitter_Prefix.pch; sourceTree = ""; }; + 6E10599A112CCCC400549F42 /* Atlas.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Atlas.h; sourceTree = ""; }; + 6E10599B112CCCC400549F42 /* Atlas.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Atlas.m; sourceTree = ""; }; 8D1107310486CEB800E47090 /* TTTwitter-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "TTTwitter-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; EB383B5710BBF6180000B2D2 /* Three20.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Three20.xcodeproj; path = ../../src/Three20.xcodeproj; sourceTree = SOURCE_ROOT; }; EB383B6410BBF62B0000B2D2 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; @@ -77,6 +80,8 @@ children = ( 1D3623240D0F684500981E51 /* AppDelegate.h */, 1D3623250D0F684500981E51 /* AppDelegate.m */, + 6E10599A112CCCC400549F42 /* Atlas.h */, + 6E10599B112CCCC400549F42 /* Atlas.m */, ); path = Classes; sourceTree = ""; @@ -219,6 +224,7 @@ files = ( 1D60589B0D05DD56006BFB54 /* main.m in Sources */, 1D3623260D0F684500981E51 /* AppDelegate.m in Sources */, + 6E10599C112CCCC400549F42 /* Atlas.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/samples/TTTwitter/TTTwitter_Prefix.pch b/samples/TTTwitter/TTTwitter_Prefix.pch index bfffe6505b..3a694221ff 100644 --- a/samples/TTTwitter/TTTwitter_Prefix.pch +++ b/samples/TTTwitter/TTTwitter_Prefix.pch @@ -6,4 +6,5 @@ #import #import #import "Three20/Three20.h" + #import "Atlas.h" #endif