File tree Expand file tree Collapse file tree 5 files changed +12
-17
lines changed Expand file tree Collapse file tree 5 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 340
340
isa = XCBuildConfiguration;
341
341
buildSettings = {
342
342
ALWAYS_SEARCH_USER_PATHS = NO;
343
+ CLANG_ENABLE_OBJC_ARC = YES;
343
344
COPY_PHASE_STRIP = NO;
344
345
FRAMEWORK_SEARCH_PATHS = (
345
346
"$(inherited)",
349
350
GCC_DYNAMIC_NO_PIC = NO;
350
351
GCC_PRECOMPILE_PREFIX_HEADER = YES;
351
352
GCC_PREFIX_HEADER = "TweetStream/TweetStream-Prefix.pch";
353
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
352
354
INFOPLIST_FILE = "TweetStream/TweetStream-Info.plist";
353
355
LIBRARY_SEARCH_PATHS = (
354
356
"$(inherited)",
364
366
isa = XCBuildConfiguration;
365
367
buildSettings = {
366
368
ALWAYS_SEARCH_USER_PATHS = NO;
369
+ CLANG_ENABLE_OBJC_ARC = YES;
367
370
COPY_PHASE_STRIP = YES;
368
371
FRAMEWORK_SEARCH_PATHS = (
369
372
"$(inherited)",
372
375
);
373
376
GCC_PRECOMPILE_PREFIX_HEADER = YES;
374
377
GCC_PREFIX_HEADER = "TweetStream/TweetStream-Prefix.pch";
378
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
375
379
INFOPLIST_FILE = "TweetStream/TweetStream-Info.plist";
376
380
LIBRARY_SEARCH_PATHS = (
377
381
"$(inherited)",
Original file line number Diff line number Diff line change @@ -65,11 +65,5 @@ - (void)applicationWillTerminate:(UIApplication *)application
65
65
*/
66
66
}
67
67
68
- - (void )dealloc
69
- {
70
- [_window release ];
71
- [_viewController release ];
72
- [super dealloc ];
73
- }
74
68
75
69
@end
Original file line number Diff line number Diff line change 16
16
IBOutlet UITextField *password;
17
17
IBOutlet UITextView *tweet;
18
18
19
+ NSURLConnection *theConnection;
19
20
SBJsonStreamParser *parser;
20
21
SBJsonStreamParserAdapter *adapter;
21
22
}
Original file line number Diff line number Diff line change @@ -14,10 +14,6 @@ @interface TweetStreamViewController () <SBJsonStreamParserAdapterDelegate>
14
14
15
15
@implementation TweetStreamViewController
16
16
17
- - (void )dealloc
18
- {
19
- [super dealloc ];
20
- }
21
17
22
18
- (void )didReceiveMemoryWarning
23
19
{
@@ -77,7 +73,7 @@ - (IBAction)go {
77
73
cachePolicy: NSURLRequestUseProtocolCachePolicy
78
74
timeoutInterval: 60.0 ];
79
75
80
- [[[ NSURLConnection alloc ] initWithRequest: theRequest delegate: self ] autorelease ];
76
+ theConnection = [[ NSURLConnection alloc ] initWithRequest: theRequest delegate: self ];
81
77
}
82
78
83
79
#pragma mark SBJsonStreamParserAdapterDelegate methods
@@ -130,9 +126,6 @@ - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)err
130
126
}
131
127
132
128
- (void )connectionDidFinishLoading : (NSURLConnection *)connection {
133
- [connection release ];
134
- [adapter release ];
135
- [parser release ];
136
129
}
137
130
138
131
Original file line number Diff line number Diff line change 8
8
9
9
#import < UIKit/UIKit.h>
10
10
11
+ #import " TweetStreamAppDelegate.h"
12
+
11
13
int main (int argc, char *argv[])
12
14
{
13
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc ] init ];
14
- int retVal = UIApplicationMain (argc, argv, nil , nil );
15
- [pool release ];
15
+ int retVal = 0 ;
16
+ @autoreleasepool {
17
+ retVal = UIApplicationMain (argc, argv, nil , NSStringFromClass ([TweetStreamAppDelegate class ]));
18
+ }
16
19
return retVal;
17
20
}
You can’t perform that action at this time.
0 commit comments