<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,24 +2,25 @@
 // http://code.google.com/p/flycode/source/browse/trunk/jstalk/extras/acornplugin/
 
 // application: gets an object from Acorn over DO
-var acorn = [JSTalk application:&quot;Acorn&quot;];
+var acorn = JSTalk.application_(&quot;Acorn&quot;);
 var outPath = &quot;/tmp/jimi.png&quot;;
-var firstDoc = [[acorn orderedDocuments] objectAtIndex:0];
+var firstDoc = acorn.orderedDocuments().objectAtIndex_(0);
 
 for (i = 0; i &lt; 10; i++) {
-    [[firstDoc windowController] callFilterWithName:&quot;CIGaussianBlur&quot;];
-    [NSThread sleepForTimeInterval:0.2];
+    firstDoc.windowController().callFilterWithName_(&quot;CIGaussianBlur&quot;);
+    NSThread.sleepForTimeInterval_(0.2);
 }
 
-[[firstDoc dataRepresentationOfType:&quot;public.png&quot;] writeToFile:outPath];
+firstDoc.dataRepresentationOfType_(&quot;public.png&quot;).writeToFile_(outPath);
 
-[[firstDoc undoManager] undo];
+firstDoc.undoManager().undo();
 
-var qt = [SBApplication application:&quot;QuickTime Player&quot;];
+var qt = SBApplication.application_(&quot;QuickTime Player&quot;);
 
 print(qt);
 
-[qt open:[NSURL fileURLWithPath: outPath]];
-[qt activate];
+qt.open_(NSURL.fileURLWithPath_(outPath));
+qt.activate();
 
 print(&quot;Hurray!&quot;);
+</diff>
      <filename>example_scripts/Acorn.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
-var imageURL = [NSURL URLWithString:&quot;http://flyingmeat.com/images/fmlogo.pdf&quot;];
+var imageURL = NSURL.URLWithString_(&quot;http://flyingmeat.com/images/fmlogo.pdf&quot;);
 
-var image = [[[NSImage alloc] initWithContentsOfURL:imageURL] autorelease];
+var image = NSImage.alloc().initWithContentsOfURL_(imageURL).autorelease();
 
-var acorn = [JSTalk application:&quot;Acorn&quot;];
+var acorn = JSTalk.application_(&quot;Acorn&quot;);
 
-[[acorn sharedDocumentController] newDocumentWithImageData:[image TIFFRepresentation]];
+acorn.sharedDocumentController().newDocumentWithImageData_(image.TIFFRepresentation());
 
 </diff>
      <filename>example_scripts/AcornNewImage.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
-var jst = [JSTalk application:&quot;JSTalk Editor&quot;];
+var jst = JSTalk.application_(&quot;JSTalk Editor&quot;);
 
-if ([jst displayDialog:&quot;Hello&quot; withTitle:@&quot;What?&quot;] == NSOKButton) {
+if (jst.displayDialog_withTitle_(&quot;Hello&quot;, &quot;What?&quot;) == NSOKButton) {
     print(&quot;woo&quot;);
 }
 </diff>
      <filename>example_scripts/Alert Box.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,12 @@
-var pi       = [NSProcessInfo processInfo];
-var argCount = [[pi arguments] count];
+var pi       = NSProcessInfo.processInfo();
+var argCount = pi.arguments().count();
 
 print(&quot;There are &quot; + argCount + &quot; args&quot;);
 
 var idx = 0;
 while (idx &lt; argCount) {
     
-    print(&quot;argument &quot; + idx + &quot;: &quot; + [pi arguments][idx]);
+    print(&quot;argument &quot; + idx + &quot;: &quot; + pi.arguments()[idx]);
     
     idx++;
 }</diff>
      <filename>example_scripts/CommandLineArgs.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-var mail = [SBApplication application:&quot;Mail&quot;];
+var mail = SBApplication.application_(&quot;Mail&quot;);
 
 var to = &quot;someone@somewhere.com&quot;;
 var from = &quot;someone@somewhere.com&quot;;
@@ -6,17 +6,17 @@ var subject = &quot;This is the subject.&quot;;
 var content = &quot;This is the message content.\n\nIsn't it great?&quot;;
 
 var emailMessageProps = {subject:subject, content:content};
-var emailMessage = [[[mail classForScriptingClass:@&quot;outgoing message&quot;] alloc] initWithProperties:emailMessageProps];
+var emailMessage = mail.classForScriptingClass_(&quot;outgoing message&quot;).alloc().initWithProperties_(emailMessageProps);
 
-[[mail outgoingMessages] addObject:emailMessage];
+mail.outgoingMessages().addObject_(emailMessage);
 
 emailMessage.sender = from;
 emailMessage.visible = true;
 
 theRecipientProps = {address:from};
-theRecipient = [[[mail classForScriptingClass:@&quot;to recipient&quot;] alloc] initWithProperties: theRecipientProps];
+theRecipient = mail.classForScriptingClass_(&quot;to recipient&quot;).alloc().initWithProperties_(theRecipientProps);
 
-[[emailMessage toRecipients] addObject:theRecipient];
+emailMessage.toRecipients().addObject_(theRecipient);
 
-[emailMessage send];
+emailMessage.send();
 </diff>
      <filename>example_scripts/Mail.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -18,13 +18,6 @@ if ([windows count] &gt; 0) {
     var finalPath = path + '/' + folderName;
     
     [[NSFileManager defaultManager] createDirectoryAtPath: finalPath attributes:nil];
-    
-    
-    //var terminal = [SBApplication application:&quot;Terminal&quot;];
-    
-    //[terminal activate];
-    
-    //[terminal doScript:&quot;cd '&quot; + [url path] + &quot;'&quot; in:nil];
 }
 else {
     print(&quot;There's no window open&quot;)</diff>
      <filename>example_scripts/NewFolderWithDateInFinder.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,19 +1,19 @@
-var windows  = [[SBApplication application:&quot;Finder&quot;] windows];
+var windows  = SBApplication.application_(&quot;Finder&quot;).windows();
 
-if ([windows count] &gt; 0) {
+if (windows.count() &gt; 0) {
     
     // from SBObject:
     // get() &quot;Forces evaluation of the receiver, causing the real object to be returned immediately.&quot;
     var win = windows[0].get();
     var target = win.target().get();
-    var url = [NSURL URLWithString:[target URL]];
-    var path = [url path].replace(&quot;%20&quot;, &quot; &quot;);
+    var url = NSURL.URLWithString_(target.URL());
+    var path = url.path().replace(&quot;%20&quot;, &quot; &quot;);
     
-    var terminal = [SBApplication application:&quot;Terminal&quot;];
+    var terminal = SBApplication.application_(&quot;Terminal&quot;);
     
-    [terminal activate];
+    terminal.activate();
     
-    [terminal doScript:&quot;cd '&quot; + path + &quot;'&quot; in:nil];
+    terminal.doScript_in_(&quot;cd '&quot; + path + &quot;'&quot;, nil);
 }
 else {
     print(&quot;There's no window open&quot;)</diff>
      <filename>example_scripts/Open Shell in Finder.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
-var finder  = [SBApplication application:&quot;Finder&quot;];
+var finder  = SBApplication.application_(&quot;Finder&quot;);
 
 // notice that the @ is making the string an NSString instance.
 // the fileURL method is part of the JSTalk &quot;Extras&quot; categories
-var url  = [@&quot;/Volumes/srv/Users/gus/Desktop/foo.pict&quot; fileURL]
+var url  = @&quot;/Volumes/srv/Users/gus/Desktop/foo.pict&quot;.fileURL();
 var item = [[finder items] objectAtLocation:url];
 
 item.comment = &quot;Hello World!&quot;;</diff>
      <filename>example_scripts/Set Finder Comment.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,13 +1,12 @@
 // this script requires the use of jstalk-sketch, in the extras folder.
 
-var sketch = [JSTalk application:&quot;Sketch&quot;];
-var doc = [sketch orderedDocuments][0]
-var rectangle = [doc makeNewBox];
-
-[rectangle setSize:NSMakeSize(100, 100)];
-[rectangle setXPosition:100];
-[rectangle setYPosition:100];
+var sketch = JSTalk.application_(&quot;Sketch&quot;);
+var doc = sketch.orderedDocuments()[0]
+var rectangle = doc.makeNewBox();
 
+rectangle.setSize_(NSMakeSize(100, 100));
+rectangle.setXPosition_(100);
+rectangle.setYPosition_(100);
 
 /*
 tell application &quot;Sketch&quot;	tell document 1		set o to make new box		set width of o to 100		set height of o to 100		set stroke thickness of o to 10	end tellend tell</diff>
      <filename>example_scripts/Sketch.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
-var VoodooPad = [JSTalk application:&quot;VoodooPad Pro&quot;];
+var VoodooPad = JSTalk.application_(&quot;VoodooPad Pro&quot;);
 
-var firstDoc = [[VoodooPad orderedDocuments] objectAtIndex:0];
+var firstDoc = VoodooPad.orderedDocuments().objectAtIndex_(0);
 
 print(firstDoc);
 
-indexText = [[[firstDoc pageForKey:&quot;index&quot;] dataAsAttributedString] string];
+indexText = firstDoc.pageForKey_(&quot;index&quot;).dataAsAttributedString().string();
 
 print(indexText);
\ No newline at end of file</diff>
      <filename>example_scripts/VoodooPad.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,2 @@
 
-[[SBApplication application:&quot;iChat&quot;] setStatusMessage:&quot;Happy (funball)&quot;];
+SBApplication.application_(&quot;iChat&quot;).setStatusMessage_(&quot;Happy (funball)&quot;);</diff>
      <filename>example_scripts/iChat.jstalk</filename>
    </modified>
    <modified>
      <diff>@@ -712,20 +712,20 @@
 		CCC5B92C0F1EFB5900126722 /* JSCocoa */ = {
 			isa = PBXGroup;
 			children = (
+				CC1587880F6316B00077A4DF /* BridgeSupportController.h */,
+				CC15878F0F6316B00077A4DF /* BridgeSupportController.m */,
 				CC1587870F6316B00077A4DF /* class.js */,
-				CC1587820F6316B00077A4DF /* JSCocoaFFIClosure.m */,
-				CC1587830F6316B00077A4DF /* JSCocoaPrivateObject.m */,
+				CC1587860F6316B00077A4DF /* JSCocoa.h */,
+				CC15878C0F6316B00077A4DF /* JSCocoaController.h */,
+				CC15878B0F6316B00077A4DF /* JSCocoaController.m */,
+				CC15878E0F6316B00077A4DF /* JSCocoaFFIArgument.h */,
 				CC1587840F6316B00077A4DF /* JSCocoaFFIArgument.m */,
+				CC15878D0F6316B00077A4DF /* JSCocoaFFIClosure.h */,
+				CC1587820F6316B00077A4DF /* JSCocoaFFIClosure.m */,
 				CC1587850F6316B00077A4DF /* JSCocoaLib.h */,
-				CC1587860F6316B00077A4DF /* JSCocoa.h */,
-				CC1587880F6316B00077A4DF /* BridgeSupportController.h */,
 				CC1587890F6316B00077A4DF /* JSCocoaLib.m */,
 				CC15878A0F6316B00077A4DF /* JSCocoaPrivateObject.h */,
-				CC15878B0F6316B00077A4DF /* JSCocoaController.m */,
-				CC15878C0F6316B00077A4DF /* JSCocoaController.h */,
-				CC15878D0F6316B00077A4DF /* JSCocoaFFIClosure.h */,
-				CC15878E0F6316B00077A4DF /* JSCocoaFFIArgument.h */,
-				CC15878F0F6316B00077A4DF /* BridgeSupportController.m */,
+				CC1587830F6316B00077A4DF /* JSCocoaPrivateObject.m */,
 			);
 			name = JSCocoa;
 			sourceTree = &quot;&lt;group&gt;&quot;;</diff>
      <filename>jstalk.xcodeproj/project.pbxproj</filename>
    </modified>
    <modified>
      <diff>@@ -241,14 +241,13 @@
     BOOL useMsgSend = NO;
     
     if (useMsgSend) {
-        NSMutableString *ret = [NSMutableString stringWithFormat:@&quot;jstalk_msgsend(%@, '%@'&quot;, target, selector];
+        NSMutableString *ret = [NSMutableString stringWithFormat:@&quot;JSTalk.msgSend_selector_args_(%@, '%@', [&quot;, target, selector];
         
         if ([methodArgs count]) {
-            [ret appendString:@&quot;, &quot;];
             [ret appendString:[methodArgs componentsJoinedByString:@&quot;, &quot;]];
         }
         
-        [ret appendString:@&quot;)&quot;];
+        [ret appendString:@&quot;])&quot;];
         
         return ret;
     }</diff>
      <filename>src/JSTPreprocessor.m</filename>
    </modified>
    <modified>
      <diff>@@ -50,7 +50,7 @@ addTest('[fo doSomething:&quot; a &quot; + [b fun] + &quot; c &quot; in:nil];',
 
 addTest('print([NSString stringWithString:@&quot;a&quot;+&quot;b&quot;])',
         'print(NSString.stringWithString_(NSString.stringWithString_(&quot;a&quot;)+&quot;b&quot;))');
-        
+
 addTest('[NSFullUserName() lowercaseString];',
         'NSFullUserName().lowercaseString();');
 </diff>
      <filename>tests/preprocess.jstalk</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4d1f04c161bb1f057fe621997da7b71bc72e618e</id>
    </parent>
  </parents>
  <author>
    <name>August Mueller</name>
    <email>gus@flyingmeat.com</email>
  </author>
  <url>http://github.com/ccgus/jstalk/commit/26f3bdecbc4fc5962b5b5aeb12d430706f3578d7</url>
  <id>26f3bdecbc4fc5962b5b5aeb12d430706f3578d7</id>
  <committed-date>2009-06-28T20:48:30-07:00</committed-date>
  <authored-date>2009-06-28T20:48:30-07:00</authored-date>
  <message>Rewrote some of the examples, without using the []'s.  I just don't want to scare folks off.</message>
  <tree>a0cc362cb5eb4c0d645af5caa80ada9905f7da10</tree>
  <committer>
    <name>August Mueller</name>
    <email>gus@flyingmeat.com</email>
  </committer>
</commit>
