[macruby-changes] [610] MacRuby/trunk/lib/hotcocoa/mappings/control.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 19 17:08:49 PDT 2008


Revision: 610
          http://trac.macosforge.org/projects/ruby/changeset/610
Author:   lsansonetti at apple.com
Date:     2008-09-19 17:08:49 -0700 (Fri, 19 Sep 2008)
Log Message:
-----------
adding constants for the alignment property

Modified Paths:
--------------
    MacRuby/trunk/lib/hotcocoa/mappings/control.rb

Modified: MacRuby/trunk/lib/hotcocoa/mappings/control.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/control.rb	2008-09-20 00:08:16 UTC (rev 609)
+++ MacRuby/trunk/lib/hotcocoa/mappings/control.rb	2008-09-20 00:08:49 UTC (rev 610)
@@ -1,5 +1,13 @@
 HotCocoa::Mappings.map :control => :NSControl do
-  
+
+  constant :alignment, {
+    :left      => NSLeftTextAlignment,
+    :right     => NSRightTextAlignment,
+    :center    => NSCenterTextAlignment,
+    :justified => NSJustifiedTextAlignment,
+    :natural   => NSNaturalTextAlignment
+  }
+
   custom_methods do
    
     include TargetActionConvenience 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080919/6f09f40a/attachment.html 


More information about the macruby-changes mailing list