From: Eloy D. <elo...@gm...> - 2007-12-17 22:55:58
|
Hi Rich, If you use "install.rb install" then RubyCocoa will be re-installed. But like Axel points out you can simply take the generated HTML and place it anywhere you like. Eloy On 17 dec 2007, at 23:28, Rich Warren wrote: > Thanks Eloy and Axel. > > One quick question: when I follow Axel's instructions to install > from the tar, am I re-installing the whole RubyCocoa framework, or > am I just installing the docs? I assume it just installs the docs, > but I want to make sure. > > Thanks, > > -Rich- > > On Dec 17, 2007 9:29 AM, Eloy Duran < elo...@gm...> wrote: > Hi, > > Actually the script is gen_bridge_doc.rb, which is in /System/ > Library/Frameworks/RubyCocoa.framework/Versions/A/Tools/ > gen_bridge_doc.rb. > However gen_bridge_doc.rb is only a wrapper around the library which > does the actual work, but it seems the actual library is not included. > > So for now you indeed need to download the tar and use it as Axel > demonstrated. > > Also please note that it doesn't include support for all the > frameworks that RubyCocoa supports starting with Leopard. > They might work, but this is not tested and so they are not included > in the generation process. > If people would like to try it out on some unsupported frameworks > let me know and I'll whip up an explanation of the process. > > Cheers, > Eloy > > On 17 dec 2007, at 11:06, 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 > > > ------------------------------------------------------------------------- > 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 |