From: Eloy D. <e....@su...> - 2008-04-10 08:16:13
|
Hi Scott, Unfortunately the sources are the docs... I believe this was because there's no final API yet, although Laurent might be able to say more about that. http://rubycocoa.svn.sourceforge.net/viewvc/rubycocoa/trunk/src/framework/src/ruby/osx/objc/oc_import.rb?view=markup Starting from line 62. Cheers, Eloy On Apr 10, 2008, at 5:55 AM, Scott Thompson wrote: > 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 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |