Skip to content

Commit

Permalink
renamed Boxed.objc_type to Boxed.type
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/macruby64@674 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Oct 26, 2008
1 parent 99436d9 commit dff5b83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion objc.m
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions test/ruby/test_objc.rb
Expand Up @@ -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])
Expand Down

0 comments on commit dff5b83

Please sign in to comment.