[MacRuby-devel] [MacRuby] #401: Cannot call from ObjC to Ruby with an int argument

MacRuby ruby-noreply at macosforge.org
Sat Oct 24 19:03:58 PDT 2009


#401: Cannot call from ObjC to Ruby with an int argument
-------------------------------------+--------------------------------------
 Reporter:  antony.blakey@…          |        Owner:  lsansonetti@…        
     Type:  defect                   |       Status:  closed               
 Priority:  critical                 |    Milestone:  MacRuby 0.5          
Component:  MacRuby                  |   Resolution:  invalid              
 Keywords:                           |  
-------------------------------------+--------------------------------------

Comment(by lsansonetti@…):

 The current solution is to provide a BridgeSupport file that annotates all
 informal protocols (including datasource or delegate methods) of your
 Objective-C framework. MacRuby will read that file at runtime and
 appropriately register the methods using the right runtime signature.

 Most frameworks of Mac OS X ship with BridgeSupport files, so you should
 not need to do any of that if you deal with system APIs.

 In case you're trying to use MacRuby from your own Objective-C framework,
 you will have to generate a BridgeSupport file for it. Check out the
 gen_bridge_metadata(1) man-page for more info (you can also google a bit).

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/401#comment:3>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list