Permalink
Browse files

renamed Boxed.objc_type to Boxed.type

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/macruby64@674 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 99436d9 commit dff5b83c3c5a0578733696d4a41e942d7c5470ee @lrz lrz committed Oct 26, 2008
Showing with 3 additions and 3 deletions.
  1. +1 −1 objc.m
  2. +2 −2 test/ruby/test_objc.rb
View
@@ -3323,7 +3323,7 @@ VALUE rb_vm_call(rb_thread_t * th, VALUE klass, VALUE recv, VALUE id,
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();
@@ -450,8 +450,8 @@ def test_create_pointer
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])

0 comments on commit dff5b83

Please sign in to comment.