Changeset 3074 for platform/quicksilver/TwitterPlugin
- Timestamp:
- 12/12/07 09:32:40 (13 months ago)
- Location:
- platform/quicksilver/TwitterPlugin
- Files:
-
- 2 modified
-
Info.plist (modified) (2 diffs)
-
TwitterPluginAction.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/quicksilver/TwitterPlugin/Info.plist
r3072 r3074 16 16 <string>BNDL</string> 17 17 <key>CFBundleVersion</key> 18 <string> 3F</string>18 <string>40</string> 19 19 <key>NSPrincipalClass</key> 20 20 <string>TwitterPlugin</string> … … 135 135 </array> 136 136 </dict> 137 <key>QSDefaults</key> 138 <dict> 139 <key>interface.screen_name</key> 140 <string>twitter</string> 141 <key>interface.password</key> 142 <string>pass</string> 143 </dict> 137 144 </dict> 138 145 </plist> -
platform/quicksilver/TwitterPlugin/TwitterPluginAction.m
r3072 r3074 11 11 @implementation TwitterPluginAction 12 12 13 - (QSObject *)performActionOnObject:(QSObject *)dObject{ 14 QSObject *result; 15 NSString *dWithHello; 16 17 dWithHello = [NSString stringWithFormat:@"%@ hello",[dObject stringValue]]; 18 result = [QSObject objectWithString:dWithHello]; 13 - (QSObject *)performActionOnObject:(QSObject *)dObject { 14 QSObject *result = dObject; 19 15 20 16 NSString *content = [NSString stringWithFormat:@"status=%@", [dObject stringValue]]; … … 31 27 if (theConnection) { 32 28 receivedData = [[NSMutableData data] retain]; 33 NSLog(@"connected !");34 29 } else { 35 30 NSLog(@"not connected correctly."); … … 41 36 - (void) connection : (NSURLConnection *) connection 42 37 didReceiveResponse : (NSURLResponse *) response { 43 NSLog(@"didReceiveResponse 1");44 45 38 NSDictionary *dicHead = [(NSHTTPURLResponse *)response allHeaderFields]; 46 39 NSLog([dicHead objectForKey:@"Status"]); 47 NSLog(@"didReceiveResponse 2");48 40 [receivedData setLength:0]; 49 41 } … … 51 43 - (void) connection : (NSURLConnection *) connection 52 44 didReceiveData : (NSData *) data { 53 NSLog(@"didReceiveData 1 %d", [data length]);54 55 45 [receivedData appendData:data]; 56 57 NSLog(@"didReceiveData 2");58 46 } 59 47
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)