<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,7 +15,7 @@
 	&lt;key&gt;CFBundlePackageType&lt;/key&gt;
 	&lt;string&gt;BNDL&lt;/string&gt;
 	&lt;key&gt;CFBundleVersion&lt;/key&gt;
-	&lt;string&gt;1CA&lt;/string&gt;
+	&lt;string&gt;1D3&lt;/string&gt;
 	&lt;key&gt;NSPrincipalClass&lt;/key&gt;
 	&lt;string&gt;TwitterPlugin&lt;/string&gt;
 	&lt;key&gt;QSActions&lt;/key&gt;</diff>
      <filename>Info.plist</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,6 @@
 
 @interface TwitterPluginAction : QSActionProvider
 {
-  id receivedData;
 }
 @end
 </diff>
      <filename>TwitterPluginAction.h</filename>
    </modified>
    <modified>
      <diff>@@ -16,7 +16,7 @@
   NSString *optional = @&quot;&quot;;
   if (ind) {
     NSString *fr = [ind stringValue];
-    if (! [fr isEqualToString:PUBLIC]) {
+    if ((![fr isEqualToString:@&quot;&quot;] &amp;&amp; (![fr isEqualToString:PUBLIC]))) {
       optional = [NSString stringWithFormat:@&quot;@%@ &quot;, fr];
     }
   }
@@ -40,14 +40,16 @@
   [urlRequest setHTTPMethod:@&quot;POST&quot;];
   [urlRequest setHTTPBody:[content dataUsingEncoding:NSUTF8StringEncoding]];
 
+
+  NSURLResponse *response;
+  NSError *err;
   // connect it
-  NSURLConnection *con = [NSURLConnection connectionWithRequest:urlRequest
-                                                       delegate:self];
-  if (con) {
-    receivedData = [[NSMutableData data] retain];
-  } else {
-    //NSLog(@&quot;not connected correctly.&quot;);
-  }
+  NSData *ret = [NSURLConnection sendSynchronousRequest:urlRequest
+    returningResponse:&amp;response
+    error:&amp;err];
+
+	NSString *result = [[[NSString alloc] initWithData:ret encoding:NSUTF8StringEncoding] autorelease];
+  NSLog(@&quot;NSURLConnection result = %@&quot;, result);
 
   return dObject;
 }
@@ -60,34 +62,4 @@
     ;
 }
 
-// callbacks
-- (void) connection:(NSURLConnection *)connection
-    didReceiveResponse:(NSURLResponse *)response
-{
-  NSDictionary *dicHead = [(NSHTTPURLResponse *)response allHeaderFields];
-  //NSLog([dicHead objectForKey:@&quot;Status&quot;]);
-  [receivedData setLength:0];
-}
-
-- (void) connection:(NSURLConnection *)connection
-  didReceiveData:(NSData *)data
-{
-  [receivedData appendData:data];
-}
-
- - (void) connection : (NSURLConnection *) connection 
- 	didFailWithError : (NSError *) error
-{
-	//NSLog(@&quot;didFailWithError 1&quot;);
-	// [connection release];
-	[receivedData release];	
-	//NSLog(@&quot;didFailWithError 2&quot;);
-}
-
-- (void) connectionDidFinishLoading:(NSURLConnection *)connection
-{
-//	NSLog(@&quot;connectionDidFinishLoading: succeeded to load %d bytes&quot;, [receivedData length]);
-//	[connection release];
-	[receivedData release];
-}
 @end</diff>
      <filename>TwitterPluginAction.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b4082fda06f3b307a38aab3174b84a825795cafc</id>
    </parent>
  </parents>
  <author>
    <name>mootoh</name>
    <email>mootoh@gmail.com</email>
  </author>
  <url>http://github.com/mootoh/qstwitter/commit/1519f76012897bff1174a1f646b04967d7343b64</url>
  <id>1519f76012897bff1174a1f646b04967d7343b64</id>
  <committed-date>2008-09-15T01:23:53-07:00</committed-date>
  <authored-date>2008-09-15T01:23:53-07:00</authored-date>
  <message>use synchronous HTTP request.</message>
  <tree>1f1d74ad11c81f0692fe5c4b9b33c8c682f3d565</tree>
  <committer>
    <name>mootoh</name>
    <email>mootoh@gmail.com</email>
  </committer>
</commit>
