public
Description:
Homepage:
Clone URL: git://github.com/Squeegy/latest-chatty.git
root view controller is now just a plain view controller
Squeegy (author)
Thu Aug 14 17:33:19 -0700 2008
commit  68f781cb34b37d8fd7d5371c76248da5575d75a9
tree    dd2d2ec15ece911af6711088bea269ff355ddb91
parent  a9483f027e858d3893392fe3dbaf28763da33f2a
...
13
14
15
16
 
17
 
 
18
19
20
...
13
14
15
 
16
17
18
19
20
21
22
0
@@ -13,8 +13,10 @@
0
 #import "Feed.h"
0
 #import "Post.h"
0
 
0
-@interface RootViewController : UITableViewController {
0
+@interface RootViewController : UIViewController {
0
   Feed *feed;
0
+  
0
+  IBOutlet UITableView *tableView;
0
 }
0
 
0
 - (void)feedDidFinishLoading;
...
47
48
49
50
51
 
 
52
53
54
...
68
69
70
71
 
72
73
74
...
87
88
89
90
 
91
92
 
93
94
 
95
96
97
...
107
108
109
110
 
111
112
113
...
154
155
156
 
157
158
159
...
47
48
49
 
 
50
51
52
53
54
...
68
69
70
 
71
72
73
74
...
87
88
89
 
90
91
 
92
93
 
94
95
96
97
...
107
108
109
 
110
111
112
113
...
154
155
156
157
158
159
160
0
@@ -47,8 +47,8 @@
0
 }
0
 
0
 
0
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
0
-  
0
+- (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
0
+  NSLog(@"asked for cell!");
0
   RootPostCellView *cell;
0
   if (indexPath.row < [[feed posts] count]) {
0
     Post *post = [[feed posts] objectAtIndex:indexPath.row];
0
@@ -68,7 +68,7 @@
0
 }
0
 
0
 
0
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
0
+ - (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
0
   // Tapped a post cell
0
   if (indexPath.row < [[feed posts] count]) {
0
     RootPostCellView *cell = (RootPostCellView *)[tableView cellForRowAtIndexPath:indexPath];
0
@@ -87,11 +87,11 @@
0
 }
0
 
0
 - (void)feedDidFinishLoading {
0
-  [[self tableView] reloadData];
0
+  [tableView reloadData];
0
   if (feed.lastPageLoaded == 1) {
0
-    [[self tableView] scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
0
+    [tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
0
   }
0
-  [[self tableView] deselectRowAtIndexPath:[[self tableView] indexPathForSelectedRow] animated:YES];
0
+  [tableView deselectRowAtIndexPath:[tableView indexPathForSelectedRow] animated:YES];
0
   
0
   self.title = [feed storyName];
0
   
0
@@ -107,7 +107,7 @@
0
   [detailViewController release];
0
   
0
   // Remove loading status from tapped cell
0
-  [(RootPostCellView *)[[self tableView] cellForRowAtIndexPath:[[self tableView] indexPathForSelectedRow]] setLoading:NO];
0
+  [(RootPostCellView *)[tableView cellForRowAtIndexPath:[tableView indexPathForSelectedRow]] setLoading:NO];
0
   
0
   [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
0
 }
0
@@ -154,6 +154,7 @@
0
 
0
 - (void)viewWillAppear:(BOOL)animated {
0
   [super viewWillAppear:animated];
0
+  [tableView deselectRowAtIndexPath:[tableView indexPathForSelectedRow] animated:YES];
0
 }
0
 
0
 - (void)viewDidAppear:(BOOL)animated {
...
8
9
10
11
 
12
13
14
...
22
23
24
25
 
26
27
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
30
31
32
 
 
 
 
 
33
34
35
36
37
38
39
40
41
42
43
44
45
...
49
50
51
52
 
53
54
 
55
56
57
58
59
60
 
 
 
61
62
 
63
64
65
66
67
 
 
68
69
70
 
71
72
73
74
75
76
 
 
 
77
78
 
79
80
81
...
101
102
103
104
105
 
 
 
 
 
 
106
107
 
 
 
 
 
108
109
110
...
113
114
115
116
117
 
 
 
 
118
119
120
121
122
 
 
123
124
125
...
144
145
146
147
 
148
149
150
151
152
153
154
 
155
156
157
...
165
166
167
 
 
 
 
168
169
170
...
172
173
174
175
176
177
178
179
 
180
181
182
...
8
9
10
 
11
12
13
14
...
22
23
24
 
25
26
 
 
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 
 
53
54
55
56
57
58
 
 
59
 
 
 
 
 
 
60
61
62
...
66
67
68
 
69
70
 
71
72
73
74
 
 
 
75
76
77
78
 
79
80
81
82
 
 
83
84
85
86
 
87
88
89
90
 
 
 
91
92
93
94
 
95
96
97
98
...
118
119
120
 
 
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
...
139
140
141
 
 
142
143
144
145
146
147
148
149
150
151
152
153
154
155
...
174
175
176
 
177
178
179
180
181
182
183
 
184
185
186
187
...
195
196
197
198
199
200
201
202
203
204
...
206
207
208
 
 
 
 
 
209
210
211
212
0
@@ -8,7 +8,7 @@
0
     <string key="IBDocument.HIToolboxVersion">352.00</string>
0
     <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
0
       <bool key="EncodedWithXMLCoder">YES</bool>
0
-      <integer value="3"/>
0
+      <integer value="12"/>
0
     </object>
0
     <object class="NSArray" key="IBDocument.PluginDependencies">
0
       <bool key="EncodedWithXMLCoder">YES</bool>
0
@@ -22,24 +22,41 @@
0
       <object class="IBProxyObject" id="500153577">
0
         <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
0
       </object>
0
-      <object class="IBUITableView" id="708052741">
0
+      <object class="IBUIView" id="696943389">
0
         <reference key="NSNextResponder"/>
0
-        <int key="NSvFlags">274</int>
0
-        <string key="NSFrameSize">{320, 460}</string>
0
+        <int key="NSvFlags">292</int>
0
+        <object class="NSMutableArray" key="NSSubviews">
0
+          <bool key="EncodedWithXMLCoder">YES</bool>
0
+          <object class="IBUITableView" id="1052176211">
0
+            <reference key="NSNextResponder" ref="696943389"/>
0
+            <int key="NSvFlags">274</int>
0
+            <string key="NSFrameSize">{320, 416}</string>
0
+            <reference key="NSSuperview" ref="696943389"/>
0
+            <object class="NSColor" key="IBUIBackgroundColor">
0
+              <int key="NSColorSpace">1</int>
0
+              <bytes key="NSRGB">MC4xOTYwNzg0MyAwLjE5NjA3ODQzIDAuMTk2MDc4NDMAA</bytes>
0
+            </object>
0
+            <bool key="IBUIOpaque">NO</bool>
0
+            <bool key="IBUIClipsSubviews">YES</bool>
0
+            <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
0
+            <bool key="IBUIDelaysContentTouches">NO</bool>
0
+            <int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
0
+            <bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
0
+            <float key="IBUIRowHeight">7.000000e+01</float>
0
+            <float key="IBUISectionHeaderHeight">2.700000e+01</float>
0
+            <float key="IBUISectionFooterHeight">2.700000e+01</float>
0
+          </object>
0
+        </object>
0
+        <string key="NSFrameSize">{320, 416}</string>
0
         <reference key="NSSuperview"/>
0
         <object class="NSColor" key="IBUIBackgroundColor">
0
-          <int key="NSColorSpace">1</int>
0
-          <bytes key="NSRGB">MC4xOTYwNzg0MyAwLjE5NjA3ODQzIDAuMTk2MDc4NDMAA</bytes>
0
+          <int key="NSColorSpace">3</int>
0
+          <bytes key="NSWhite">MQA</bytes>
0
+          <object class="NSColorSpace" key="NSCustomColorSpace">
0
+            <int key="NSID">2</int>
0
+          </object>
0
         </object>
0
-        <bool key="IBUIOpaque">NO</bool>
0
-        <bool key="IBUIClipsSubviews">YES</bool>
0
         <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
0
-        <bool key="IBUIDelaysContentTouches">NO</bool>
0
-        <int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
0
-        <bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
0
-        <float key="IBUIRowHeight">7.000000e+01</float>
0
-        <float key="IBUISectionHeaderHeight">2.700000e+01</float>
0
-        <float key="IBUISectionFooterHeight">2.700000e+01</float>
0
       </object>
0
     </object>
0
     <object class="IBObjectContainer" key="IBDocument.Objects">
0
@@ -49,33 +66,33 @@
0
           <object class="IBCocoaTouchOutletConnection" key="connection">
0
             <string key="label">view</string>
0
             <reference key="source" ref="372490531"/>
0
-            <reference key="destination" ref="708052741"/>
0
+            <reference key="destination" ref="696943389"/>
0
           </object>
0
-          <int key="connectionID">5</int>
0
+          <int key="connectionID">11</int>
0
         </object>
0
         <object class="IBConnectionRecord">
0
           <object class="IBCocoaTouchOutletConnection" key="connection">
0
-            <string key="label">dataSource</string>
0
-            <reference key="source" ref="708052741"/>
0
-            <reference key="destination" ref="372490531"/>
0
+            <string key="label">tableView</string>
0
+            <reference key="source" ref="372490531"/>
0
+            <reference key="destination" ref="1052176211"/>
0
           </object>
0
-          <int key="connectionID">6</int>
0
+          <int key="connectionID">13</int>
0
         </object>
0
         <object class="IBConnectionRecord">
0
           <object class="IBCocoaTouchOutletConnection" key="connection">
0
-            <string key="label">delegate</string>
0
-            <reference key="source" ref="708052741"/>
0
+            <string key="label">dataSource</string>
0
+            <reference key="source" ref="1052176211"/>
0
             <reference key="destination" ref="372490531"/>
0
           </object>
0
-          <int key="connectionID">7</int>
0
+          <int key="connectionID">14</int>
0
         </object>
0
         <object class="IBConnectionRecord">
0
           <object class="IBCocoaTouchOutletConnection" key="connection">
0
-            <string key="label">tableView</string>
0
-            <reference key="source" ref="372490531"/>
0
-            <reference key="destination" ref="708052741"/>
0
+            <string key="label">delegate</string>
0
+            <reference key="source" ref="1052176211"/>
0
+            <reference key="destination" ref="372490531"/>
0
           </object>
0
-          <int key="connectionID">8</int>
0
+          <int key="connectionID">15</int>
0
         </object>
0
       </object>
0
       <object class="IBMutableOrderedSet" key="objectRecords">
0
@@ -101,10 +118,19 @@
0
             <reference key="parent" ref="360949347"/>
0
           </object>
0
           <object class="IBObjectRecord">
0
-            <int key="objectID">3</int>
0
-            <reference key="object" ref="708052741"/>
0
+            <int key="objectID">10</int>
0
+            <reference key="object" ref="696943389"/>
0
+            <object class="NSMutableArray" key="children">
0
+              <bool key="EncodedWithXMLCoder">YES</bool>
0
+              <reference ref="1052176211"/>
0
+            </object>
0
             <reference key="parent" ref="360949347"/>
0
           </object>
0
+          <object class="IBObjectRecord">
0
+            <int key="objectID">12</int>
0
+            <reference key="object" ref="1052176211"/>
0
+            <reference key="parent" ref="696943389"/>
0
+          </object>
0
         </object>
0
       </object>
0
       <object class="NSMutableDictionary" key="flattenedProperties">
0
@@ -113,13 +139,17 @@
0
           <bool key="EncodedWithXMLCoder">YES</bool>
0
           <string>-1.CustomClassName</string>
0
           <string>-2.CustomClassName</string>
0
-          <string>3.IBEditorWindowLastContentRect</string>
0
-          <string>3.IBPluginDependency</string>
0
+          <string>10.IBEditorWindowLastContentRect</string>
0
+          <string>10.IBPluginDependency</string>
0
+          <string>12.IBEditorWindowLastContentRect</string>
0
+          <string>12.IBPluginDependency</string>
0
         </object>
0
         <object class="NSMutableArray" key="dict.values">
0
           <bool key="EncodedWithXMLCoder">YES</bool>
0
           <string>RootViewController</string>
0
           <string>UIResponder</string>
0
+          <string>{{490, 305}, {320, 416}}</string>
0
+          <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
0
           <string>{{593, 278}, {320, 460}}</string>
0
           <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
0
         </object>
0
@@ -144,14 +174,14 @@
0
         </object>
0
       </object>
0
       <nil key="sourceID"/>
0
-      <int key="maxID">9</int>
0
+      <int key="maxID">19</int>
0
     </object>
0
     <object class="IBClassDescriber" key="IBDocument.Classes">
0
       <object class="NSMutableArray" key="referencedPartialClassDescriptions">
0
         <bool key="EncodedWithXMLCoder">YES</bool>
0
         <object class="IBPartialClassDescription">
0
           <string key="className">RootViewController</string>
0
-          <string key="superclassName">UITableViewController</string>
0
+          <string key="superclassName">UIViewController</string>
0
           <object class="NSMutableDictionary" key="actions">
0
             <bool key="EncodedWithXMLCoder">YES</bool>
0
             <object class="NSMutableArray" key="dict.sortedKeys">
0
@@ -165,6 +195,10 @@
0
               <string>id</string>
0
             </object>
0
           </object>
0
+          <object class="NSMutableDictionary" key="outlets">
0
+            <string key="NS.key.0">tableView</string>
0
+            <string key="NS.object.0">UITableView</string>
0
+          </object>
0
           <object class="IBClassDescriptionSource" key="sourceIdentifier">
0
             <string key="majorKey">IBProjectSource</string>
0
             <string key="minorKey">Classes/RootViewController.h</string>
0
@@ -172,11 +206,7 @@
0
         </object>
0
         <object class="IBPartialClassDescription">
0
           <string key="className">RootViewController</string>
0
-          <string key="superclassName">UITableViewController</string>
0
-          <object class="NSMutableDictionary" key="outlets">
0
-            <string key="NS.key.0">tableView</string>
0
-            <string key="NS.object.0">UITableView</string>
0
-          </object>
0
+          <string key="superclassName">UIViewController</string>
0
           <object class="IBClassDescriptionSource" key="sourceIdentifier">
0
             <string key="majorKey">IBUserSource</string>
0
             <string key="minorKey"/>

Comments