From: Patrick G. <pge...@wa...> - 2008-06-17 23:51:51
|
> Thanks very much for the suggestions. However, I'm not seeing the > connection between Apple's BridgeSupport infrastructure and > RubyCocoa's "objc_method" method. The BridgeSupport type-encoding > syntax, which is XML, doesn't seem to overlap with the 'B@:@@' > syntax used by objc_method, as obliquely referenced on that > limechat.com page. Pasting from /System/Library/Frameworks/RubyCocoa.framework/Versions/A/ Resources/ruby/osx/objc/oc_import.rb OCTYPES = { :id => '@', :class => '#', :BOOL => 'c', :char => 'c', :uchar => 'C', :short => 's', :ushort => 'S', :int => 'i', :uint => 'I', :long => 'l', :ulong => 'L', :float => 'f', :double => 'd', :bool => 'B', :void => 'v', :selector => ':', :sel => ':', :longlong => 'q', :ulonglong => 'Q', :cstr => '*', } Note that bool and BOOL have different signatures. You're using bool ('B') and Cocoa usually uses BOOL ('c'). That may explain your inconsistent results. -Patrick |