Projects

Ticket #186 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Difference between NSObject and Object?

Reported by: vincent.isambart@… Owned by: lsansonetti@…
Priority: critical Milestone: MacRuby 0.5
Component: MacRuby Keywords:
Cc:

Description

In MacRuby, NSObject and Object are supposed to be the same. However, the following code does not work with NSObject (but does with Object):

class NSObject # works if NSObject is changed to Object
  def self.func
  end
end

Class.func

Change History

Changed 3 years ago by vincent.isambart@…

Note that if you do "NSObject = Object" or "framework 'Cocoa'" before running the code above, everything works fine.

Changed 2 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.5

Should be fixed in trunk.

$ ./miniruby -e "class NSObject; def self.func; end; end; Class.func"
$ 
Note: See TracTickets for help on using tickets.