Changeset 3099 for platform/quicksilver/TwitterPlugin
- Timestamp:
- 12/13/07 01:49:01 (13 months ago)
- Location:
- platform/quicksilver/TwitterPlugin
- Files:
-
- 1 added
- 2 modified
-
Info.plist (modified) (1 diff)
-
Screenshot-1.png (added)
-
TwitterPluginAction.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/quicksilver/TwitterPlugin/Info.plist
r3081 r3099 16 16 <string>BNDL</string> 17 17 <key>CFBundleVersion</key> 18 <string> 4F</string>18 <string>60</string> 19 19 <key>NSPrincipalClass</key> 20 20 <string>TwitterPlugin</string> -
platform/quicksilver/TwitterPlugin/TwitterPluginAction.m
r3081 r3099 16 16 // construct request body 17 17 NSString *content = [NSString stringWithFormat:@"status=%@", [dObject stringValue]]; 18 NSLog(content);18 //NSLog(content); 19 19 [content stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 20 20 … … 23 23 NSString *screenName = [values valueForKey:@"TwitterPreference.screenName"]; 24 24 NSString *password = [values valueForKey:@"TwitterPreference.password"]; 25 NSLog(@"screenName:%@, password:%@", screenName, password);25 //NSLog(@"screenName:%@, password:%@", screenName, password); 26 26 27 27 // construct request … … 40 40 receivedData = [[NSMutableData data] retain]; 41 41 } else { 42 NSLog(@"not connected correctly.");42 //NSLog(@"not connected correctly."); 43 43 } 44 44 … … 61 61 - (void) connection : (NSURLConnection *) connection 62 62 didFailWithError : (NSError *) error { 63 NSLog(@"didFailWithError 1");63 //NSLog(@"didFailWithError 1"); 64 64 // [connection release]; 65 // [receivedData release]; 66 67 NSLog(@"didFailWithError 2"); 65 [receivedData release]; 66 //NSLog(@"didFailWithError 2"); 68 67 } 69 68 70 69 - (void) connectionDidFinishLoading:(NSURLConnection *)connection { 71 NSLog(@"connectionDidFinishLoading: succeeded to load %d bytes", [receivedData length]); 72 [(NSData *)receivedData writeToFile:@"/tmp/connectionDidFinishLoading.log" 73 atomically:YES]; 70 // NSLog(@"connectionDidFinishLoading: succeeded to load %d bytes", [receivedData length]); 74 71 // [connection release]; 75 //[receivedData release];72 [receivedData release]; 76 73 } 77 74 @end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)