From: Rich W. <rw...@gm...> - 2008-01-11 10:35:00
|
I finally got around to trying this. However, I kept getting errors. ruby install.rb config ruby install doc This fails with the following error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ install.rb: entering doc phase... ---> framework /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby gen_bridge_doc.rb build ../bridge-doc mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge- doc /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - I../../ext/rubycocoa -I../../lib gen_bridge_doc/rdocify_framework.rb '/Developer/Documentation/DocSets/ com.apple.ADC_Reference_Library.CoreReference.docset/Contents/ Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ruby Working on: ApplicationKit mkdir -p /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge- doc/ruby Processing reference file: CIColor_AppKitAdditions /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ gen_bridge_doc/lib/cocoa_ref.rb:70:in `join': can't convert nil into String (TypeError) from /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/tool/ gen_bridge_doc/lib/cocoa_ref.rb:70:in `initialize' from gen_bridge_doc/rdocify_framework.rb:173:in `new' from gen_bridge_doc/rdocify_framework.rb:173 from gen_bridge_doc/rdocify_framework.rb:171:in `each' from gen_bridge_doc/rdocify_framework.rb:171 gen_bridge_doc.rb:35:in `command': 'system /System/Library/Frameworks/ Ruby.framework/Versions/1.8/usr/bin/ruby -I../../ext/rubycocoa -I../../ lib gen_bridge_doc/rdocify_framework.rb '/Developer/Documentation/ DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/ Resources/Documents/documentation/Cocoa/Reference/ApplicationKit/' / Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/bridge-doc/ruby' failed (RuntimeError) from gen_bridge_doc.rb:39:in `ruby' from gen_bridge_doc.rb:99 from gen_bridge_doc.rb:98:in `each' from gen_bridge_doc.rb:98 rm -rf bridge-doc doc failed hook /Users/rikiwarren/Downloads/RubyCocoa-0.13.0/framework/pre-doc.rb failed: 'system /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ ruby gen_bridge_doc.rb build ../bridge-doc' failed try 'ruby install.rb --help' for usage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I also tried rake build rake doc But this also failed. Am I missing something? Do I need to install a library or something to get this to work? Thanks, -Rich- On Dec 17, 2007, at 12:06 AM, Axel Sachmann wrote: > Hi Rich, > > i was searching this stuff too. I downloaded the > rubycocoa-0.13.0.tar file and then install it manually. > Then you must use the install script to generate the doc. > > ruby install config > > ruby install doc > > --> look in the folder /RubyCocoa-0.13.0/framework/bridge-doc/ > > Thats it... > > Axel > > > Am 17.12.2007 um 05:46 schrieb Rich Warren: > >> Thanks, but I'd already read those, and was looking for something a >> bit more in-depth. >> >> Specifically, I'm looking for the BridgeDoc generated documentation >> mentioned in http://rubycocoa.sourceforge.net/FrameworkDocumentation. >> That site says the html documentation should be located in / >> Developer/ >> Documentation/RubyCocoa/Frameworks, but that folder does not exist on >> my system, and /Developer/Documentation/RubyCocoa simply contains a >> few japanese files. Additionally, it mentions using ri to access the >> documentation, but that doesn't work either. >> >> Does anyone know how to generate this documentation for Leopard? I >> assume I have to use BridgeDoc, but I'm not sure what that is, or >> where I can get it. Also, are there any differences in the Leopard >> distribution of RubyCocoa that I need to be aware of? >> >> Thanks, >> >> -Rich- >> >> >> >> On Dec 16, 2007, at 3:56 PM, Ian Joyner wrote: >> >>> Hi Rich, >>> >>> This seems hot off the press: >>> >>> http://developer.apple.com/documentation/Cocoa/Conceptual/RubyPythonCocoa/Introduction/Introduction.html >>> >>> Ian >>> >>> On 14/12/2007, at 7:50 PM, Rich Warren wrote: >>> >>>> I'm fairly familiar with both Ruby and Cocoa, but I've never really >>>> played around with RubyCocoa before. I read the "Ruby and Python on >>>> Mac OS X" article from the Apple Developer Connection, and I'm >>>> looking >>>> for more in-depth documentation. >>>> >>>> I'm using the version of RubyCocoa that comes with Leopard. It >>>> seems >>>> that the documentation is...missing? >>>> >>>> I found the example code at /Developer/Examples/Ruby/RubyCocoa, but >>>> the documentation at /Developer/Documentation/RubyCocoa has only >>>> three >>>> smallish HTML files in Japanese. >>>> >>>> ri doesn't seem to work for any OSX::* items. >>>> >>>> How do I find/load the documentation into Leopard? >>>> >>>> Are there any other good sources of RubyCocoa documentation? >>>> >>>> In particular, I'm looking for some information on CoreData and Key >>>> Value compliance. >>>> >>>> In short, I have a parent entity that has a to many relationship >>>> with >>>> a child entity. I currently display all the parents in a table. I >>>> would like to have one column bind to the child count for each >>>> parent. >>>> >>>> In Cocoa, I would do this by giving the parent a transient "count" >>>> attribute. I would then make a subclass of NSManagedObject and have >>>> the parent use my subclass. In my subclass, I would create a - >>>> (int_32t)count method that returned the child count. This would get >>>> called, through the magic of KVC for my parent's count value. >>>> >>>> In RubyCocoa I tried the same. But it didn't work. My sample code >>>> is >>>> below. >>>> >>>> require 'osx/cocoa' >>>> >>>> class ManagedParent < OSX::NSManagedObject >>>> >>>> def count() >>>> puts "Getting The Count" >>>> return 5 >>>> end >>>> end >>>> >>>> Yes, yes. I know. I'm not actually getting the child count. But I >>>> wanted to get this, simpler version working before I tried to >>>> tackle >>>> the whole valueForKey_("child") mess. >>>> >>>> When I run my code, I'm not getting 5 for the count, nor am I >>>> seeing >>>> "Getting The Count" in the console. How do I get this to work? >>>> >>>> Thanks, >>>> >>>> -Rich- >>>> >>>> ------------------------------------------------------------------------- >>>> SF.Net email is sponsored by: >>>> Check out the new SourceForge.net Marketplace. >>>> It's the best place to buy or sell services >>>> for just about anything Open Source. >>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>>> _______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>> >>> >>> >>> >>> ------------------------------------------------------------------------- >>> SF.Net email is sponsored by: >>> Check out the new SourceForge.net Marketplace. >>> It's the best place to buy or sell services >>> for just about anything Open Source. >>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> ------------------------------------------------------------------------- >> SF.Net email is sponsored by: >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services >> for just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |