[MacRuby-devel] constants again

Laurent Sansonetti lsansonetti at apple.com
Tue Jan 11 12:09:19 PST 2011


Hi Joel,

The constant name should be Ro_MGSFOTextView. However, it looks like the BridgeSupport file isn't installed in the right path. Therefore, the file isn't loaded up when you call #framework, and the constant isn't mapped.

First, the directory inside Resources should be BridgeSupport.
Second, the file extension should be .bridgesupport.

To resume, the full path should be build/Release/MGSFragaria.framework/Resources/BridgeSupport/MGSFragaria.bridgesupport

Laurent

On Jan 11, 2011, at 12:03 PM, Joel Reymont wrote:

> What should be the constant name below?
> 
> Is there a way to find out the constants defined in a framework?
> 
> 	Thanks, Joel
> 
> ---
> 
> grep -i ro_MGSFOTextView build/Release/MGSFragaria.framework/Resources/BridgeMetadata/MGSFragaria.bridgemetadata 
> <constant name='ro_MGSFOTextView' type='@'/>
> 
> irb(main):001:0> framework './build/Release/MGSFragaria.framework'
> => true
> 
> irb(main):002:0> ro_MGSFOTextView
> NameError: undefined local variable or method `ro_MGSFOTextView' for main:TopLevel
> 	
> irb(main):003:0> Ro_MGSFOTextView
> NameError: uninitialized constant Ro_MGSFOTextView
> 	
> irb(main):004:0> RO_MGSFOTextView
> NameError: uninitialized constant RO_MGSFOTextView
> 
> 
> ---
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> 
> 
> 
> 
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110111/0fe89a1e/attachment.html>


More information about the MacRuby-devel mailing list