You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(3) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1) |
Feb
(11) |
Mar
(9) |
Apr
(1) |
May
(5) |
Jun
(5) |
Jul
(4) |
Aug
(3) |
Sep
(15) |
Oct
(8) |
Nov
(9) |
Dec
(11) |
2004 |
Jan
(5) |
Feb
(2) |
Mar
(1) |
Apr
(3) |
May
(6) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(3) |
2005 |
Jan
(1) |
Feb
(7) |
Mar
(6) |
Apr
(36) |
May
(20) |
Jun
(42) |
Jul
(21) |
Aug
(12) |
Sep
(56) |
Oct
(5) |
Nov
(55) |
Dec
(53) |
2006 |
Jan
(43) |
Feb
(83) |
Mar
(98) |
Apr
(42) |
May
(68) |
Jun
(55) |
Jul
(50) |
Aug
(104) |
Sep
(13) |
Oct
(70) |
Nov
(37) |
Dec
(42) |
2007 |
Jan
(56) |
Feb
(18) |
Mar
(43) |
Apr
(80) |
May
(65) |
Jun
(149) |
Jul
(103) |
Aug
(71) |
Sep
(62) |
Oct
(67) |
Nov
(72) |
Dec
(63) |
2008 |
Jan
(64) |
Feb
(63) |
Mar
(31) |
Apr
(42) |
May
(71) |
Jun
(62) |
Jul
(37) |
Aug
(25) |
Sep
(5) |
Oct
(2) |
Nov
(7) |
Dec
(14) |
2009 |
Jan
(20) |
Feb
(15) |
Mar
(19) |
Apr
(8) |
May
(7) |
Jun
|
Jul
(37) |
Aug
(12) |
Sep
(19) |
Oct
(5) |
Nov
(1) |
Dec
(4) |
2010 |
Jan
(5) |
Feb
(24) |
Mar
(16) |
Apr
(9) |
May
(4) |
Jun
|
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(5) |
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Eloy D. <elo...@gm...> - 2007-12-30 11:04:59
|
Hi, I can't speak for when/if this will be included with XCode. However what I use is ruby-debug (http://www.datanoise.com/ruby-debug/), it works the same with rubycocoa as it does with any other ruby code. I have some code to make it use another gui etc, but that's not clean enough to release atm. But until I do, or somebody else ;-], it should work fine in the terminal. Cheers, Eloy On 28 dec 2007, at 11:38, Tim Perrett wrote: > Hi Rich, > > Yes thats right - at the moment you cannot use breakpoints with ruby > code. > > Eloy or Laurent might be able to tell you if/when that might be > implemented. > > Cheers > > Tim > > > On 28 Dec 2007, at 08:50, Rich Warren wrote: > >> I'm using RubyCocoa in Leopard. It seems that XCode will not let me >> set breakpoints in any of the Ruby code. Is that correct? Or am I >> doiong something wrong? >> >> What's the best way to use this code with a debugger? > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Eloy D. <elo...@gm...> - 2007-12-30 11:01:28
|
Hi, I have no experience with this at all, but let me try to help you further a little bit anyways :) Reading through the cairo maillinglist of february (http://lists.cairographics.org/archives/cairo/2007-February.txt.gz ), I think that what you want to do is something like this guy uses in objc: >> 1) fetch the class named NSGraphicsContext >> 2) id nsGC = [NSGraphicsContext graphicsContextWithWindow: >> myNSWindow]; >> 3) cgCtx = [nsGC graphicPort]; >> 4) cairo_nquartz_surface_create_for_cg_context (cgCtx, 200, >> 200, 1); He then complains that the drawing will only show up if he hides and shows the window. I think it's because he's drawing outside of for instance #drawRect, which is the method which is called when it's time for you NSView subclass to start drawing. So translating this to RubyCocoa would be something like: class MyCairoWindow < OSX::NSWindow def cairo_cg_surface(rect) # get the CG context context = OSX::NSGraphicsContext.currentContext.graphicsPort # don't know what the ruby way of calling this function is, so I'll just use the C one cairo_nquartz_surface_create_for_cg_context(context, rect.size.width, rect.size.height, 1) end def drawRect(rect) # you can use `rect` which is passed as a param to draw only parts of the view which are marked `dirty` # or you can get the complete rectangle of the window with: self.bounds # or you can of course just draw on any size you like :) surface = cairo_cg_surface(bounds) # your drawing code end end I have no idea if this would work :) But it's just how I would get started playing with this. You might also want to ask these questions on the (r)cario maillinglists, because the code for this to work, which is the quartz code, is in cairo itself. So I presume people there have experience using it. Good luck! Cheers, Eloy On 30 dec 2007, at 10:37, Jarosia Hope wrote: > Hello :) > > > So I have got rcairo working and rubycocoa working, > > and i've been reading http://cairographics.org/OpenGL/ > > It says to create your cairo surface as a context normally > like > surface = Cairo::ImageSurface.new(width, height) > context = Cairo:: Context.new(surface) > > and then i get to > Copy the cairo-surface into an OpenGL-texture with glTexImage2D(). > Use this texture to map your OpenGL-primitives with. > > Im looking at the CocoaGL example and i dont see a texture? > > something to do with drawRect ... but im not sure how thats getting > called and how I can make it a texture image? > > Any solutions? > > Thanks in advance! > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Jarosia H. <ja...@mi...> - 2007-12-30 09:37:41
|
Hello :) So I have got rcairo working and rubycocoa working, and i've been reading http://cairographics.org/OpenGL/ It says to create your cairo surface as a context normally like surface = Cairo::ImageSurface.new(width, height) context = Cairo::Context.new(surface) and then i get to Copy the cairo-surface into an OpenGL-texture with glTexImage2D(). Use this texture to map your OpenGL-primitives with. Im looking at the CocoaGL example and i dont see a texture? something to do with drawRect ... but im not sure how thats getting called and how I can make it a texture image? Any solutions? Thanks in advance! |
From: Tim P. <he...@ti...> - 2007-12-28 10:38:58
|
Hi Rich, Yes thats right - at the moment you cannot use breakpoints with ruby code. Eloy or Laurent might be able to tell you if/when that might be implemented. Cheers Tim On 28 Dec 2007, at 08:50, Rich Warren wrote: > I'm using RubyCocoa in Leopard. It seems that XCode will not let me > set breakpoints in any of the Ruby code. Is that correct? Or am I > doiong something wrong? > > What's the best way to use this code with a debugger? |
From: Rich W. <rw...@gm...> - 2007-12-28 08:50:09
|
I'm using RubyCocoa in Leopard. It seems that XCode will not let me set breakpoints in any of the Ruby code. Is that correct? Or am I doiong something wrong? What's the best way to use this code with a debugger? -Rich- |
From: Brian R. <sg...@gm...> - 2007-12-25 18:10:21
|
Thank you each Eloy and Satoshi. brian |
From: Eloy D. <elo...@gm...> - 2007-12-25 11:44:43
|
Hi, Select the RubyCocoa.framework in your xcode prroject and choose "Get Info" (cmd + i). Then update the path to the framework to point to the one in /Library/ Frameworks/RubyCocoa.framework. Cheers, Eloy On 24 dec 2007, at 18:43, Brian Redman wrote: > Hello, > > I've installed 0.13.0 on 10.5 by downloading and installing from the > disk image. In Xcode, new projects link against 0.13.0 while old > projects continue to use 0.12.0. How do I tell the old projects to > use the new version of RubyCocoa? > > Also, the only way I know to guess the version is to test > ObjCID#inspect. Is there a straightforward way to find the > RubyCocoa version? > > Thank you, > > brian > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Satoshi N. <sna...@in...> - 2007-12-25 02:37:10
|
On 2007/12/25, at 2:43, Brian Redman wrote: > Also, the only way I know to guess the version is to test > ObjCID#inspect. Is there a straightforward way to find the RubyCocoa > version? You can see the version to refer to OSX::RUBYCOCOA_VERSION. require 'osx/cocoa' puts OSX::RUBYCOCOA_VERSION #=> 0.13.0 -- Satoshi Nakagawa |
From: Brian R. <sg...@gm...> - 2007-12-24 17:43:18
|
Hello, I've installed 0.13.0 on 10.5 by downloading and installing from the disk image. In Xcode, new projects link against 0.13.0 while old projects continue to use 0.12.0. How do I tell the old projects to use the new version of RubyCocoa? Also, the only way I know to guess the version is to test ObjCID#inspect. Is there a straightforward way to find the RubyCocoa version? Thank you, brian |
From: Satoshi N. <sna...@in...> - 2007-12-24 06:58:47
|
Hi, The value comes from a constant, kABHomeLabel. http://developer.apple.com/documentation/UserExperience/Reference/AddressBook/Classes/ABPerson_Class/Reference/Reference.html Proof: require 'osx/cocoa' include OSX OSX.require_framework "AddressBook" puts KABWorkLabel puts KABHomeLabel puts KABOtherLabel Result: _$!<Work>!$_ _$!<Home>!$_ _$!<Other>!$_ -- Satoshi Nakagawa On 2007/12/24, at 7:04, Patrick Hurley wrote: > This is probably more of a cocoa question than a rubycocoa question, > so feel free to ignore me :-) I am trying to work with address book, > and at least at the moment I am stumped by labels in > AbMultiValueCoreDataWrapper. I expect to see "Home", but I get > "_$<Home>!$_". > > Thanks for any help, pointers to docs, etc. > pth > > > require 'osx/cocoa' > include OSX > OSX.require_framework "AddressBook" > > me = ABAddressBook.sharedAddressBook.me # => > #<OSX::ABPerson:0xbf3d8 class='ABPerson' id=0x514af0> > addr_info = me.valueForProperty("Address") # => > #<OSX::ABMultiValueCoreDataWrapper:0xbf04a > class='ABMultiValueCoreDataWrapper' id=0x51f0e0> > addr_info.labelAtIndex(0).to_s # => "_$!<Home>!$_" > addr_info.identifierAtIndex(0).to_s # => > "E2E83CDE-3FE3-4F89-9EBD-1030C483A6D8" > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Patrick H. <ph...@gm...> - 2007-12-23 22:04:31
|
This is probably more of a cocoa question than a rubycocoa question, so feel free to ignore me :-) I am trying to work with address book, and at least at the moment I am stumped by labels in AbMultiValueCoreDataWrapper. I expect to see "Home", but I get "_$<Home>!$_". Thanks for any help, pointers to docs, etc. pth require 'osx/cocoa' include OSX OSX.require_framework "AddressBook" me = ABAddressBook.sharedAddressBook.me # => #<OSX::ABPerson:0xbf3d8 class='ABPerson' id=0x514af0> addr_info = me.valueForProperty("Address") # => #<OSX::ABMultiValueCoreDataWrapper:0xbf04a class='ABMultiValueCoreDataWrapper' id=0x51f0e0> addr_info.labelAtIndex(0).to_s # => "_$!<Home>!$_" addr_info.identifierAtIndex(0).to_s # => "E2E83CDE-3FE3-4F89-9EBD-1030C483A6D8" |
From: Benjamin J. <bhj...@gm...> - 2007-12-19 15:27:36
|
Hi all, I'm pleased to announce that Blogo, a desktop weblog editor and the first application from Brainjuice, was launched this month. Blogo is one of the first commercial RubyCocoa applications to be released, and as a gesture of thanks to the RubyCocoa community we'd like to offer a discount of $10 off the full retail price of $25 for all members of the rubycocoa-talk list. You can download an unlimited, 15-day trial of Blogo at our website: http://www.drinkbrainjuice.com/ To redeem the discount, just enter "RUBYCOCOA" in the coupon field during checkout. The coupon will be valid for the next three weeks. As the coupon is intended only for members of the list, we kindly request that you not publish or share it with non-list members. We'd like to thank everyone in the community who helped with the development of Blogo, and especially to the members of the core dev team, who were incredibly generous with their time while offering advice, answering questions and, of course, working hard to bring RubyCocoa up to production level. Please direct feedback and/or questions to su...@dr.... Thanks to all, Ben Jackson Technical Director Brainjuice, LLC |
From: Michael B. <ma...@gm...> - 2007-12-19 11:24:49
|
Thanks Eloy. Tim's done a great job with the site - I'll do my best to continue his work, and to make the site a valuable resource. Cheers, Michael > Hi, > > I would first like to thank Tim a final time for his excellent work > which got me and many others started. So thanks again Tim! > To Michael I wish the best of luck and hope rubycocoa can re-arise > to be that same excellent resource for rubycocoa developers that are > starting nowadays. > Cheers, > Eloy |
From: Eloy D. <elo...@gm...> - 2007-12-19 10:00:01
|
Hi Rich, You would use the regular coercion methods in Ruby, in this case that's #to_s. myTextField.stringValue.to_s In other cases where you might have an object which could be anything, then you can use #to_ruby Cheers, Eloy On Dec 19, 2007 10:55 AM, Rich Warren <rw...@gm...> wrote: > I have another quick question. > > OK, so I can get the OSX string from a text field by calling > myTextField.stringValue(). > > How do I convert this into a Ruby String so that I can use Ruby's > regular expressions on it? > > 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 > |
From: Rich W. <rw...@gm...> - 2007-12-19 09:55:16
|
I have another quick question. OK, so I can get the OSX string from a text field by calling myTextField.stringValue(). How do I convert this into a Ruby String so that I can use Ruby's regular expressions on it? Thanks, -Rich- |
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 |
From: Rich W. <rw...@gm...> - 2007-12-17 22:28:13
|
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 > > |
From: Eloy D. <elo...@gm...> - 2007-12-17 19:53:23
|
Hi, I would first like to thank Tim a final time for his excellent work which got me and many others started. So thanks again Tim! To Michael I wish the best of luck and hope rubycocoa can re-arise to be that same excellent resource for rubycocoa developers that are starting nowadays. Cheers, Eloy On 15 dec 2007, at 19:18, Tim Burks wrote: > > Please welcome Michael Black as the new maintainer of RubyCocoa > Resources ( http://www.rubycocoa.com), the site that I built to help > me learn and document RubyCocoa. Michael is a developer based in > Melbourne who has worked with Ruby and Cocoa separately, and like me > when I created the site, Michael wants to know more about how to use > them together. > > Michael has offered to update the existing articles to account for > the RubyCocoa improvements in Leopard and to add some new articles. > He's also graciously taken over hosting and care of the hieraki- > based web app that runs the site. > > So, many thanks to Michael and to everyone who's been involved with > RubyCocoa. Building RubyCocoa Resources was been a great learning > experience for me and took me much further with Objective-C than I > ever expected. > > best regards, > > Tim Burks > > http://blog.neontology.com | http://programming.nu > ------------------------------------------------------------------------- > 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 |
From: Eloy D. <elo...@gm...> - 2007-12-17 19:47:33
|
Hi Manny, You can simply install again from source and install that, as long as your ruby in /usr/local is first in the path everything should go well. I don't believe there's a uninstaller. But removing the files in the receipt should be it but it might leave the patched ruby behind. If I recall correctly the backed up libruby should still be there. Cheers, Eloy On 16 dec 2007, at 15:54, Manny Andrade wrote: > First, thanks for the effort of releasing this software. > > I installed 0.13 from binary on tiger 10.4.11 and all went well, but > trying to use newcocoa i figured i should have installed from source > since i have an additional ruby on /usr/local/bin > > I wanted to ask how do i uninstall the pkg? And, is this needed > before i build from source? > In the end, i would like to get rid of the binary, i guess it wont > be used once the /usr/local source version is on. > In case there is no uninstall script, I found the list file on the > receipt, is deleting everything there all that needs to be done? > > Thank you > Manny Andrade > > -- > If the odds are a million to one against something occurring, > chances are 50-50 it will. > ------------------------------------------------------------------------- > 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 |
From: Eloy D. <elo...@gm...> - 2007-12-17 19:30:11
|
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 > |
From: Axel S. <axe...@go...> - 2007-12-17 10:06:17
|
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 |
From: Rich W. <rw...@gm...> - 2007-12-17 04:46:18
|
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 |
From: Ian J. <ian...@sp...> - 2007-12-17 01:57:26
|
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 > |
From: Manny A. <man...@gm...> - 2007-12-16 14:55:00
|
First, thanks for the effort of releasing this software. I installed 0.13 from binary on tiger 10.4.11 and all went well, but trying to use newcocoa i figured i should have installed from source since i have an additional ruby on /usr/local/bin I wanted to ask how do i uninstall the pkg? And, is this needed before i build from source? In the end, i would like to get rid of the binary, i guess it wont be used once the /usr/local source version is on. In case there is no uninstall script, I found the list file on the receipt, is deleting everything there all that needs to be done? Thank you Manny Andrade -- If the odds are a million to one against something occurring, chances are 50-50 it will. |
From: Tim B. <tim...@gm...> - 2007-12-15 18:18:51
|
Please welcome Michael Black as the new maintainer of RubyCocoa Resources ( http://www.rubycocoa.com), the site that I built to help me learn and document RubyCocoa. Michael is a developer based in Melbourne who has worked with Ruby and Cocoa separately, and like me when I created the site, Michael wants to know more about how to use them together. Michael has offered to update the existing articles to account for the RubyCocoa improvements in Leopard and to add some new articles. He's also graciously taken over hosting and care of the hieraki-based web app that runs the site. So, many thanks to Michael and to everyone who's been involved with RubyCocoa. Building RubyCocoa Resources was been a great learning experience for me and took me much further with Objective-C than I ever expected. best regards, Tim Burks http://blog.neontology.com | http://programming.nu |