From: Scott T. <ea...@ma...> - 2008-04-10 03:55:41
|
I was wondering where I might look to find documentation for OSX.require_framework. I tried "ri" and "nothing was known" about require_framework. The reason I ask is because I was trying to write some code that uses rubycocoa and ImageIO. It took me quite some time to figure out how to make ruby aware of the ImageIO framework. I was originally trying to include the ApplicationServices umbrella framework: OSX.require_framework 'ApplicationServices' But that didn't pull in the component frameworks. After searching around I found that I could use: OSX.require_framework '/System/Library/Frameworks/ ApplicationServices.framework/Versions/Current/Frameworks/ ImageIO.framework' I prefer the "cleaner" way that the ApplicationServices framework came in above. I wanted to know if there was a "cleaner" way to import the constituent frameworks of an umbrella framework, but couldn't really find any documentation on "require_framework" and what it does, or does not accept as a parameter. Is there a source for documentation of methods like require_framework or init_for_bundle? These are both methods that I found out about after quite a lot of fruitless searching. If there's a better resource available to learn about this kind of "hidden" rubycocoa method, I'd love to look at it. Scott |