Projects

Ticket #20 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Extending an Objective-C class before referencing it replaces it

Reported by: jlukas@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.1
Component: MacRuby Keywords:
Cc:

Description

Extending an Objective-C class before referencing it replaces it, as demonstrated by the code samples below:

Works:

framework 'cocoa'
NSView.ancestors.include?(NSResponder) # => true

Doesn't work:

framework 'cocoa'
class NSView; end
NSView.ancestors.include?(NSResponder) # => false

Works:

framework 'cocoa'
NSView
class NSView; end
NSView.ancestors.include?(NSResponder) # => true

Tested with MacRuby's trunk, revision 40.

Change History

Changed 4 years ago by lsansonetti@…

  • milestone set to MacRuby 1.0

Changed 4 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r48/trunk.

Changed 4 years ago by lsansonetti@…

  • milestone changed from MacRuby 1.0 to MacRuby 0.1
Note: See TracTickets for help on using tickets.