Ticket #20 (closed defect: fixed)
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
Note: See
TracTickets for help on using
tickets.

