[macruby-changes] [674] MacRuby/branches/macruby64

source_changes at macosforge.org source_changes at macosforge.org
Sat Oct 25 18:33:48 PDT 2008


Revision: 674
          http://trac.macosforge.org/projects/ruby/changeset/674
Author:   lsansonetti at apple.com
Date:     2008-10-25 18:33:48 -0700 (Sat, 25 Oct 2008)
Log Message:
-----------
renamed Boxed.objc_type to Boxed.type

Modified Paths:
--------------
    MacRuby/branches/macruby64/objc.m
    MacRuby/branches/macruby64/test/ruby/test_objc.rb

Modified: MacRuby/branches/macruby64/objc.m
===================================================================
--- MacRuby/branches/macruby64/objc.m	2008-10-26 01:29:13 UTC (rev 673)
+++ MacRuby/branches/macruby64/objc.m	2008-10-26 01:33:48 UTC (rev 674)
@@ -3323,7 +3323,7 @@
 
     rb_cBoxed = rb_define_class("Boxed", (VALUE)objc_getClass("NSValue"));
     RCLASS_SET_VERSION_FLAG(rb_cBoxed, RCLASS_IS_OBJECT_SUBCLASS);
-    rb_define_singleton_method(rb_cBoxed, "objc_type", rb_boxed_objc_type, 0);
+    rb_define_singleton_method(rb_cBoxed, "type", rb_boxed_objc_type, 0);
     rb_define_singleton_method(rb_cBoxed, "opaque?", rb_boxed_is_opaque, 0);
     rb_define_singleton_method(rb_cBoxed, "fields", rb_boxed_fields, 0);
     rb_install_boxed_primitives();

Modified: MacRuby/branches/macruby64/test/ruby/test_objc.rb
===================================================================
--- MacRuby/branches/macruby64/test/ruby/test_objc.rb	2008-10-26 01:29:13 UTC (rev 673)
+++ MacRuby/branches/macruby64/test/ruby/test_objc.rb	2008-10-26 01:33:48 UTC (rev 674)
@@ -450,8 +450,8 @@
   end
 
   def test_create_pointer2
-    p1 = Pointer.new_with_type(NSRect.objc_type)
-    p2 = Pointer.new_with_type(NSRect.objc_type)
+    p1 = Pointer.new_with_type(NSRect.type)
+    p2 = Pointer.new_with_type(NSRect.type)
     NSDivideRect([0, 0, 100, 100], p1, p2, 10.0, 0)
     assert_equal(NSMakeRect(0, 0, 10, 100), p1[0])
     assert_equal(NSMakeRect(10, 0, 90, 100), p2[0])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20081025/e0362833/attachment.html>


More information about the macruby-changes mailing list