[macruby-changes] [898] MacRubyWebsite/trunk/content

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 12 19:30:26 PDT 2009


Revision: 898
          http://trac.macosforge.org/projects/ruby/changeset/898
Author:   rich at infoether.com
Date:     2009-03-12 19:30:25 -0700 (Thu, 12 Mar 2009)
Log Message:
-----------
fix some hotcocoa stuff

Modified Paths:
--------------
    MacRubyWebsite/trunk/content/documentation.txt
    MacRubyWebsite/trunk/content/hotcocoa/status.txt
    MacRubyWebsite/trunk/content/hotcocoa.txt

Modified: MacRubyWebsite/trunk/content/documentation.txt
===================================================================
--- MacRubyWebsite/trunk/content/documentation.txt	2009-03-13 02:22:29 UTC (rev 897)
+++ MacRubyWebsite/trunk/content/documentation.txt	2009-03-13 02:30:25 UTC (rev 898)
@@ -8,7 +8,7 @@
 ---
 h1(title). <%= h(@page.title) %>
 
-Welcome to MacRuby's documentation center.  Here you will find the information you need to get up and running and building OS X applications with MacRuby in no time.  If you have not read the "Introductory Tutorial":/documentation/tutorial.html, its a great way to get started.  If you are wondering why in the world MacRuby exists you can read that in the "Why MacRuby?":/documentation/why-macruby.html page.
+Welcome to MacRuby's documentation center.  Here you will find the information you need to get up and running and building OS X applications with MacRuby in no time.  If you have not read the "Introductory Tutorial":/documentation/tutorial.html, its a great way to get started.  If you are wondering why in the world MacRuby exists you can read that in the "Why MacRuby?":/documentation/why-macruby.html page.  If you want documentation on HotCocoa you can "find it here":/hotcocoa.html.
 
 MacRuby is a free software project by Apple Inc.  Many folks inside and outside of Apple contribute to this great project and we have a "MacRuby Project Team":/project.html page to list them.  Please also catch up on the latest news by following the "MacRuby Blog":/blog or following the project on the "@macruby":http://twitter.com/macruby Twitter account.
 

Modified: MacRubyWebsite/trunk/content/hotcocoa/status.txt
===================================================================
--- MacRubyWebsite/trunk/content/hotcocoa/status.txt	2009-03-13 02:22:29 UTC (rev 897)
+++ MacRubyWebsite/trunk/content/hotcocoa/status.txt	2009-03-13 02:30:25 UTC (rev 898)
@@ -0,0 +1,10 @@
+---
+title:      HotCocoa Mapping Status
+created_at: 2009-03-12 21:06:50.998294 -04:00
+filter:
+  - erb
+  - textile
+---
+h1(title). <%= h(@page.title) %>
+
+Coming soon...
\ No newline at end of file

Modified: MacRubyWebsite/trunk/content/hotcocoa.txt
===================================================================
--- MacRubyWebsite/trunk/content/hotcocoa.txt	2009-03-13 02:22:29 UTC (rev 897)
+++ MacRubyWebsite/trunk/content/hotcocoa.txt	2009-03-13 02:30:25 UTC (rev 898)
@@ -15,13 +15,13 @@
 
 Even with MacRuby's wonderful keyword arguments, it can be daunting to enter this...
 
-<code><pre class="commands">
+<% coderay :lang => 'ruby' do -%>
 win = NSWindow.alloc.initWithContentRect [10,20,300,300], 
   :styleMask => (NSTitledWindowMask         |
                  NSClosableWindowMask       |
                  NSMiniaturizableWindowMask |
                  NSResizableWindowMask)
-</pre></code>                 
+<% end %>
                  
 ...every time you want to create and configure a new NSWindow instance!
 
@@ -29,9 +29,9 @@
 
 With HotCocoa, creating the NSWindow instance above is as simple as:
 
-<code><pre class="commands">
-win = window :frame => [10,20,300,300]
-</pre></code>
+<% coderay :lang => 'ruby' do -%>
+win = window( :frame => [10,20,300,300] )
+<% end %>
 
 HotCocoa achieves this feat by creating Mappings over the most common Classes and Constants used on OS X. Those mappings create constructor methods on the HotCocoa module (like the "window" method above). Each constructor method accepts an optional block which yields the created instance (more on that in the HotCocoaTutorial). Mappings also decorate the standard Objective-C API with nice Ruby APIs for common operations. The important thing to realize is the constructor methods return real instances of these common classes, not high-level abstractions. So, you can call any Objective-C method available on those objects.
 
@@ -47,4 +47,4 @@
 
 h3. Want to learn more about HotCocoa?
 
-Now that you understand the basics of what HotCocoa is and why we are building it, please look at the "HotCocoa Tutorial":/hotcocoa/tutorial.html for examples of how to build OS X applications with it. For a more detailed understanding of how to read, create, edit or contribute mapping files, see "HotCocoa Mappings":/hotcocoa/mappings.html. For the current status of the project, see "HotCocoa Mapping Status":/hotcocoa/status.html.
\ No newline at end of file
+Now that you understand the basics of what HotCocoa is and why we are building it, please look at the "HotCocoa Tutorial":# (coming soon) for examples of how to build OS X applications with it. For a more detailed understanding of how to read, create, edit or contribute mapping files, see "HotCocoa Mappings Tutorial":/hotcocoa/mappings.html. For the current status of the project, see "HotCocoa Mapping Status":/hotcocoa/status.html.
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090312/f65842cc/attachment.html>


More information about the macruby-changes mailing list