[MacRuby] #1388: Can't subclass NSProxy

MacRuby ruby-noreply at macosforge.org
Wed Sep 14 10:43:42 PDT 2011


#1388: Can't subclass NSProxy
---------------------------+------------------------------------------------
 Reporter:  haxie1@…       |       Owner:  lsansonetti@…        
     Type:  defect         |      Status:  new                  
 Priority:  blocker        |   Milestone:                       
Component:  MacRuby        |    Keywords:                       
---------------------------+------------------------------------------------
 When trying to create a subclass of NSProxy, I get:

 `<main>': undefined method `inherited' for
 "#<Class:0x7fff7640e1f0>":String (NoMethodError)

 I am running the MacRuby nightly from September 13th and have the latest
 BridgeSupport installed.

 Example:

 {{{
 class MyProxy < NSProxy
     def initWithTarget(target)
         @target = target
     end
 end

 str = "foo"
 proc = MyProxy.alloc.initWithTarget(str)

 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1388>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list