Show
Ignore:
Timestamp:
12/12/07 09:32:40 (13 months ago)
Author:
mootoh
Message:

platform/quicksilver/TwitterPlugin: adding bindings...

Location:
platform/quicksilver/TwitterPlugin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • platform/quicksilver/TwitterPlugin/Info.plist

    r3072 r3074  
    1616        <string>BNDL</string> 
    1717        <key>CFBundleVersion</key> 
    18         <string>3F</string> 
     18        <string>40</string> 
    1919        <key>NSPrincipalClass</key> 
    2020        <string>TwitterPlugin</string> 
     
    135135                </array> 
    136136        </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> 
    137144</dict> 
    138145</plist> 
  • platform/quicksilver/TwitterPlugin/TwitterPluginAction.m

    r3072 r3074  
    1111@implementation TwitterPluginAction 
    1212 
    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; 
    1915 
    2016  NSString *content = [NSString stringWithFormat:@"status=%@", [dObject stringValue]]; 
     
    3127  if (theConnection) { 
    3228    receivedData = [[NSMutableData data] retain]; 
    33     NSLog(@"connected !"); 
    3429  } else { 
    3530    NSLog(@"not connected correctly."); 
     
    4136- (void) connection : (NSURLConnection *) connection 
    4237         didReceiveResponse : (NSURLResponse *) response { 
    43   NSLog(@"didReceiveResponse 1"); 
    44  
    4538  NSDictionary *dicHead = [(NSHTTPURLResponse *)response allHeaderFields]; 
    4639  NSLog([dicHead objectForKey:@"Status"]); 
    47   NSLog(@"didReceiveResponse 2"); 
    4840  [receivedData setLength:0]; 
    4941} 
     
    5143- (void) connection : (NSURLConnection *) connection 
    5244         didReceiveData : (NSData *) data { 
    53   NSLog(@"didReceiveData 1 %d", [data length]); 
    54    
    5545  [receivedData appendData:data]; 
    56  
    57   NSLog(@"didReceiveData 2"); 
    5846} 
    5947