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: Yvon T. <yvo...@gm...> - 2008-01-23 10:21:12
|
Hey list, I'd like to have RubyCocoa working with /opt/local/bin/ruby. where could i find advice on that point ? -- yvon |
From: Thinkboy <man...@gm...> - 2008-01-21 09:26:51
|
hi, sorry that it is quite a stupid question. i was trying to do Format -> Re-indent in Xcode3 , but the layout is a bit strange, or I should say , the layout is very much like Python rather than Ruby, by default. e.g. (def & return) or (while & end) are not in the same indention level, ie. the return or end are always one more indention level down. may I have how to configure Xcode3 to indent Ruby code nicely ? ~thinkboy |
From: Eloy D. <e....@su...> - 2008-01-21 00:26:00
|
Hi, FYI, this was a bug in the ActiveRecord bindings code and has been fixed in the trunk rev. 2179 Eloy On 20 jan 2008, at 13:14, Ferhat Ayaz wrote: > Hi, > > sorry if I bother the list. I get an error when I try to bind a > keypath like field1.childField > > Here is the simple code > > class Cashier < ActiveRecord::Base > end > > > class Product < ActiveRecord::Base > belongs_to :cashier > end > > The cashier has a field 'realname'. When I now try to bind a > tablecolumn to an ActiveRecordSetController arraycontroller with > ProductProxy content by using the key path 'cashier.realname', the > application produces the following error message > > OSX::OCException: NSInternalInconsistencyException - Cannot remove > an observer <NSTableBinder 0x1a430a0> for the key path > "cashier.realname" from <ProductProxy 0x21c66d0>, most likely > because the value for the key "cashier" has changed without an > appropriate KVO notification being sent. Check the KVO-compliance of > the ProductProxy class. > > > Do you have any idea? I tried to add kvc_accessor unfortunately > without success > > > class ProductProxy < OSX::ActiveRecordProxy > kvc_accessor :cashier > end > > Thanks for any help > Ferhat > > > Looking for last minute shopping deals? Find them fast with Yahoo! > Search > .------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > 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. <e....@su...> - 2008-01-20 15:08:36
|
Just a FYI. The ActiveRecord stuff does have some documentation. So you could for instance do: $ rdoc /System/Library/Frameworks/RubyCocoa.framework/Versions/Current/ Resources/ruby/osx/objc/active_record.rb $ open doc/ Or another location if you have the sources of course. Eloy On 20 jan 2008, at 13:04, Ferhat Ayaz wrote: > Hi Eloy, > > I'm using NSDecimalNumber to avoid rounding problem. I'm not sure > whether it's soo important in that case. But imho keypaths like > @sum.retail_price can produce side effects. > > Thanks! > Ferhat > > > > ----- Original Message ---- > From: Eloy Duran <e....@su...> > To: rub...@li... > Sent: Sunday, January 20, 2008 12:45:11 PM > Subject: Re: [Rubycocoa-talk] NSProxy > doesNotRecognizeSelector:copyWithZone: [SOLVED] > >> Normally I would say try: >> OSX::NSDecimalNumber.decimalWithDecimal(content), >> but for some reason it expects 6 arguments instead of 1. > > Ok scrap that. It's because it expects a NSDecimal structure. > How to create one I haven't found yet though.... > > Eloy > >> >> On 20 jan 2008, at 09:13, Ferhat Ayaz wrote: >> >>> ah! ok. Thank you very much. This does the trick. >>> >>> BTW, has somebody a more elegant solution to make a decimal number? >>> >>> class ProductProxy < OSX::ActiveRecordProxy >>> on_get :retail_price do |content| >>> OSX::NSDecimalNumber.alloc.initWithString(content.to_s) >>> >>> end >>> end >>> >>> Thanks, >>> Ferhat >>> >>> ----- Original Message ---- >>> From: Eloy Duran <e....@su...> >>> To: rub...@li... >>> Sent: Sunday, January 20, 2008 2:19:46 AM >>> Subject: Re: [Rubycocoa-talk] NSProxy >>> doesNotRecognizeSelector:copyWithZone: >>> >>> Hi, >>> >>> Have you tried using a on_get filter to change the value that is >>> returned ActiveRecord into something the table column wants? >>> For an example of this see: http://www.superalloy.nl/blog/2007/06/09/added-on_get-filter-class-method-to-activerecordproxy/ >>> >>> Eloy >>> >>> On 20 jan 2008, at 01:55, Ferhat Ayaz wrote: >>> >>>> Hi, >>>> >>>> I think I have an idea whats going wrong. I'm binding the >>>> arrangedObjects of ActiveRecordSetController to NSTableView >>>> column (usual stuff). >>>> >>>> But this is interesting: the decimal column (in my case the >>>> price of product) is the problem. >>>> >>>> I used an NSNumberFormatter in the table column cell to confirm >>>> this. And, indeed, I got this error: >>>> >>>> OSX::OCException: NSInternalInconsistencyException - Cannot >>>> create number from object <RBObject: 0x228b3b0> of class RBObject >>>> >>>> I think RBObject is in this case not the right type, is it? >>>> >>>> If I do not bind the price column, everything work fine. >>>> >>>> Is this a bug or am I just poor of knowledge? >>>> >>>> Thanks, >>>> Ferhat >>>> >>>> ----- Original Message ---- >>>> From: Ferhat Ayaz <fer...@ya...> >>>> To: rub...@li... >>>> Sent: Saturday, January 19, 2008 7:35:50 PM >>>> Subject: Re: [Rubycocoa-talk] NSProxy >>>> doesNotRecognizeSelector:copyWithZone: >>>> >>>> Hi Eloy, >>>> >>>> thank you for your reply. I'm trying to access an already >>>> existing database created by a rails application. The migration >>>> for the products table looks like this >>>> >>>> create_table :products do |t| >>>> t.column :title, :string >>>> t.column :description, :text >>>> t.column :image, :string >>>> t.column :price, :decimal, :null => false, :precision => >>>> 8, :scale => 2 >>>> t.column :asset, :decimal, :null => false, :precision => >>>> 8, :scale => 2 >>>> t.column :accepts_contract, :boolean, :default => true >>>> t.column :rank, :integer >>>> t.column :manufacturer_id, :integer >>>> t.column :created_at, :datetime >>>> t.column :updated_at, :datetime >>>> end >>>> >>>> (There are also other tables which I don't care for my rubycocoa >>>> application) >>>> >>>> Although there is a manufacturer_id, I didn't generate >>>> Manufacturer.rb using the generate.rb script (hint). This is >>>> really everything I've done. >>>> >>>> The following line causes the exception >>>> >>>> @products = Product.find(:all).to_activerecord_proxies >>>> >>>> If I try to use the first version without active_record, say: >>>> >>>> @products = [] >>>> >>>> everything is ok. >>>> >>>> The kvc_accessor :products is bind to the contentArray of an >>>> ActiveRecordSetController. >>>> >>>> RubyCocoa Version: 0.12.0 >>>> >>>> Thanks. >>>> Ferhat >>>> >>>> ----- Original Message ---- >>>> From: Eloy Duran <elo...@gm...> >>>> To: rub...@li...urceforge..net >>>> Sent: Saturday, January 19, 2008 7:02:44 PM >>>> Subject: Re: [Rubycocoa-talk] NSProxy >>>> doesNotRecognizeSelector:copyWithZone: >>>> >>>> Hi Ferhat, >>>> >>>> Unfortunately that error is too much of a general problem to be >>>> able to diagnose for me. >>>> Could you try to get some more detailed info on which code is >>>> causing the problem? >>>> >>>> Cheers, >>>> Eloy >>>> >>>> On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm trying to run an activerecordsupport application. I have >>>>> added an ActiveRecordSetController ArrayController in IB and set >>>>> the class name properly (in my case ProductProxy). >>>>> >>>>> here my simple controller code (inspired by the blog article by >>>>> Eloy Duran) >>>>> >>>>> >>>>> require 'osx/cocoa' >>>>> >>>>> class CNController < OSX::NSWindowController >>>>> kvc_accessor :products >>>>> >>>>> def init >>>>> if super_init >>>>> ActiveRecord::Base.establish_connection({ >>>>> :adapter => 'mysql', >>>>> :host => 'localhost', >>>>> >>>>> :username => 'root', >>>>> >>>>> :password => '', >>>>> :database => 'xyz_development' >>>>> >>>>> }) >>>>> @products = Product.find(:all).to_activerecord_proxies >>>>> return self >>>>> end >>>>> end >>>>> end >>>>> >>>>> >>>>> I have generated product.rb and product_proxy..rb using the >>>>> handy generate.rb script. >>>>> >>>>> So, the error message I get is the following >>>>> >>>>> [Session started at 2008-01-18 22:51:02 +0100.] >>>>> /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/ >>>>> Resources/rb_main.rb:24:in `NSApplicationMain': >>>>> NSInvalidArgumentException - *** -[NSProxy >>>>> doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) >>>>> from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/ >>>>> Contents/Resources/rb_main.rb:24 >>>>> >>>>> The Debugger has exited with status 1.The Debugger has exited >>>>> with status 1. >>>>> >>>>> Any idea? >>>>> >>>>> Thanks! >>>>> Ferhat >>>>> >>>>> >>>>> Be a better friend, newshound, and know-it-all with Yahoo! >>>>> Mobile. Try it now.. >>>>> ------------------------------------------------------------------------- >>>>> This SF.net email is sponsored by: Microsoft >>>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>>> _______________________________________________ >>>>> Rubycocoa-talk mailing list >>>>> Rub...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>>> >>>> >>>> Never miss a thing. Make Yahoo your homepage. >>>> >>>> >>>> Never miss a thing. Make Yahoo your homepage. >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>> >>> >>> >>> Looking for last minute shopping deals? Find them fast with Yahoo! >>> Search >>> .------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > > > > Never miss a thing. Make Yahoo your homepage. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Ferhat A. <fer...@ya...> - 2008-01-20 12:14:14
|
Hi, sorry if I bother the list. I get an error when I try to bind a keypath like field1.childField Here is the simple code class Cashier < ActiveRecord::Base end class Product < ActiveRecord::Base belongs_to :cashier end The cashier has a field 'realname'. When I now try to bind a tablecolumn to an ActiveRecordSetController arraycontroller with ProductProxy content by using the key path 'cashier.realname', the application produces the following error message OSX::OCException: NSInternalInconsistencyException - Cannot remove an observer <NSTableBinder 0x1a430a0> for the key path "cashier.realname" from <ProductProxy 0x21c66d0>, most likely because the value for the key "cashier" has changed without an appropriate KVO notification being sent. Check the KVO-compliance of the ProductProxy class. Do you have any idea? I tried to add kvc_accessor unfortunately without success class ProductProxy < OSX::ActiveRecordProxy kvc_accessor :cashier end Thanks for any help Ferhat ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
From: Ferhat A. <fer...@ya...> - 2008-01-20 12:05:01
|
Hi Eloy, I'm using NSDecimalNumber to avoid rounding problem. I'm not sure whether it's soo important in that case. But imho keypaths like @sum.retail_price can produce side effects. Thanks! Ferhat ----- Original Message ---- From: Eloy Duran <e....@su...> To: rub...@li... Sent: Sunday, January 20, 2008 12:45:11 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: [SOLVED] Normally I would say try: OSX::NSDecimalNumber.decimalWithDecimal(content), but for some reason it expects 6 arguments instead of 1. Ok scrap that. It's because it expects a NSDecimal structure. How to create one I haven't found yet though.... Eloy On 20 jan 2008, at 09:13, Ferhat Ayaz wrote: ah! ok. Thank you very much. This does the trick. BTW, has somebody a more elegant solution to make a decimal number? class ProductProxy < OSX::ActiveRecordProxy on_get :retail_price do |content| OSX::NSDecimalNumber.alloc.initWithString(content.to_s) end end Thanks, Ferhat ----- Original Message ---- From: Eloy Duran <e....@su...> To: rub...@li... Sent: Sunday, January 20, 2008 2:19:46 AM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi, Have you tried using a on_get filter to change the value that is returned ActiveRecord into something the table column wants? For an example of this see: http://www.superalloy.nl/blog/2007/06/09/added-on_get-filter-class-method-to-activerecordproxy/ Eloy On 20 jan 2008, at 01:55, Ferhat Ayaz wrote: Hi, I think I have an idea whats going wrong. I'm binding the arrangedObjects of ActiveRecordSetController to NSTableView column (usual stuff). But this is interesting: the decimal column (in my case the price of product) is the problem. I used an NSNumberFormatter in the table column cell to confirm this. And, indeed, I got this error: OSX::OCException: NSInternalInconsistencyException - Cannot create number from object <RBObject: 0x228b3b0> of class RBObject I think RBObject is in this case not the right type, is it? If I do not bind the price column, everything work fine. Is this a bug or am I just poor of knowledge? Thanks, Ferhat ----- Original Message ---- From: Ferhat Ayaz <fer...@ya...> To: rub...@li... Sent: Saturday, January 19, 2008 7:35:50 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi Eloy, thank you for your reply. I'm trying to access an already existing database created by a rails application. The migration for the products table looks like this create_table :products do |t| t.column :title, :string t.column :description, :text t.column :image, :string t.column :price, :decimal, :null => false, :precision => 8, :scale => 2 t.column :asset, :decimal, :null => false, :precision => 8, :scale => 2 t.column :accepts_contract, :boolean, :default => true t.column :rank, :integer t.column :manufacturer_id, :integer t.column :created_at, :datetime t.column :updated_at, :datetime end (There are also other tables which I don't care for my rubycocoa application) Although there is a manufacturer_id, I didn't generate Manufacturer.rb using the generate.rb script (hint). This is really everything I've done. The following line causes the exception @products = Product.find(:all).to_activerecord_proxies If I try to use the first version without active_record, say: @products = [] everything is ok. The kvc_accessor :products is bind to the contentArray of an ActiveRecordSetController. RubyCocoa Version: 0.12.0 Thanks. Ferhat ----- Original Message ---- From: Eloy Duran <elo...@gm...> To: rub...@li...urceforge..net Sent: Saturday, January 19, 2008 7:02:44 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi Ferhat, Unfortunately that error is too much of a general problem to be able to diagnose for me. Could you try to get some more detailed info on which code is causing the problem? Cheers, Eloy On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: Hi, I'm trying to run an activerecordsupport application. I have added an ActiveRecordSetController ArrayController in IB and set the class name properly (in my case ProductProxy). here my simple controller code (inspired by the blog article by Eloy Duran) require 'osx/cocoa' class CNController < OSX::NSWindowController kvc_accessor :products def init if super_init ActiveRecord::Base.establish_connection({ :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => '', :database => 'xyz_development' }) @products = Product.find(:all).to_activerecord_proxies return self end end end I have generated product.rb and product_proxy..rb using the handy generate.rb script. So, the error message I get is the following [Session started at 2008-01-18 22:51:02 +0100.] /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24:in `NSApplicationMain': NSInvalidArgumentException - *** -[NSProxy doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24 The Debugger has exited with status 1.The Debugger has exited with status 1. Any idea? Thanks! Ferhat Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk Never miss a thing. Make Yahoo your homepage. Never miss a thing. Make Yahoo your homepage. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk Looking for last minute shopping deals? Find them fast with Yahoo! Search.------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs |
From: Eloy D. <e....@su...> - 2008-01-20 11:45:20
|
> Normally I would say try: > OSX::NSDecimalNumber.decimalWithDecimal(content), > but for some reason it expects 6 arguments instead of 1. Ok scrap that. It's because it expects a NSDecimal structure. How to create one I haven't found yet though.... Eloy > > On 20 jan 2008, at 09:13, Ferhat Ayaz wrote: > >> ah! ok. Thank you very much. This does the trick. >> >> BTW, has somebody a more elegant solution to make a decimal number? >> >> class ProductProxy < OSX::ActiveRecordProxy >> on_get :retail_price do |content| >> OSX::NSDecimalNumber.alloc.initWithString(content.to_s) >> >> end >> end >> >> Thanks, >> Ferhat >> >> ----- Original Message ---- >> From: Eloy Duran <e....@su...> >> To: rub...@li... >> Sent: Sunday, January 20, 2008 2:19:46 AM >> Subject: Re: [Rubycocoa-talk] NSProxy >> doesNotRecognizeSelector:copyWithZone: >> >> Hi, >> >> Have you tried using a on_get filter to change the value that is >> returned ActiveRecord into something the table column wants? >> For an example of this see: http://www.superalloy.nl/blog/2007/06/09/added-on_get-filter-class-method-to-activerecordproxy/ >> >> Eloy >> >> On 20 jan 2008, at 01:55, Ferhat Ayaz wrote: >> >>> Hi, >>> >>> I think I have an idea whats going wrong. I'm binding the >>> arrangedObjects of ActiveRecordSetController to NSTableView >>> column (usual stuff). >>> >>> But this is interesting: the decimal column (in my case the price >>> of product) is the problem. >>> >>> I used an NSNumberFormatter in the table column cell to confirm >>> this. And, indeed, I got this error: >>> >>> OSX::OCException: NSInternalInconsistencyException - Cannot >>> create number from object <RBObject: 0x228b3b0> of class RBObject >>> >>> I think RBObject is in this case not the right type, is it? >>> >>> If I do not bind the price column, everything work fine. >>> >>> Is this a bug or am I just poor of knowledge? >>> >>> Thanks, >>> Ferhat >>> >>> ----- Original Message ---- >>> From: Ferhat Ayaz <fer...@ya...> >>> To: rub...@li... >>> Sent: Saturday, January 19, 2008 7:35:50 PM >>> Subject: Re: [Rubycocoa-talk] NSProxy >>> doesNotRecognizeSelector:copyWithZone: >>> >>> Hi Eloy, >>> >>> thank you for your reply. I'm trying to access an already existing >>> database created by a rails application. The migration for the >>> products table looks like this >>> >>> create_table :products do |t| >>> t.column :title, :string >>> t.column :description, :text >>> t.column :image, :string >>> t.column :price, :decimal, :null => false, :precision => >>> 8, :scale => 2 >>> t.column :asset, :decimal, :null => false, :precision => >>> 8, :scale => 2 >>> t.column :accepts_contract, :boolean, :default => true >>> t.column :rank, :integer >>> t.column :manufacturer_id, :integer >>> t.column :created_at, :datetime >>> t.column :updated_at, :datetime >>> end >>> >>> (There are also other tables which I don't care for my rubycocoa >>> application) >>> >>> Although there is a manufacturer_id, I didn't generate >>> Manufacturer.rb using the generate.rb script (hint). This is >>> really everything I've done. >>> >>> The following line causes the exception >>> >>> @products = Product.find(:all).to_activerecord_proxies >>> >>> If I try to use the first version without active_record, say: >>> >>> @products = [] >>> >>> everything is ok. >>> >>> The kvc_accessor :products is bind to the contentArray of an >>> ActiveRecordSetController. >>> >>> RubyCocoa Version: 0.12.0 >>> >>> Thanks. >>> Ferhat >>> >>> ----- Original Message ---- >>> From: Eloy Duran <elo...@gm...> >>> To: rub...@li...urceforge..net >>> Sent: Saturday, January 19, 2008 7:02:44 PM >>> Subject: Re: [Rubycocoa-talk] NSProxy >>> doesNotRecognizeSelector:copyWithZone: >>> >>> Hi Ferhat, >>> >>> Unfortunately that error is too much of a general problem to be >>> able to diagnose for me. >>> Could you try to get some more detailed info on which code is >>> causing the problem? >>> >>> Cheers, >>> Eloy >>> >>> On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: >>> >>>> Hi, >>>> >>>> I'm trying to run an activerecordsupport application. I have >>>> added an ActiveRecordSetController ArrayController in IB and set >>>> the class name properly (in my case ProductProxy). >>>> >>>> here my simple controller code (inspired by the blog article by >>>> Eloy Duran) >>>> >>>> >>>> require 'osx/cocoa' >>>> >>>> class CNController < OSX::NSWindowController >>>> kvc_accessor :products >>>> >>>> def init >>>> if super_init >>>> ActiveRecord::Base.establish_connection({ >>>> :adapter => 'mysql', >>>> :host => 'localhost', >>>> >>>> :username => 'root', >>>> >>>> :password => '', >>>> :database => 'xyz_development' >>>> >>>> }) >>>> @products = Product.find(:all).to_activerecord_proxies >>>> return self >>>> end >>>> end >>>> end >>>> >>>> >>>> I have generated product.rb and product_proxy..rb using the handy >>>> generate.rb script. >>>> >>>> So, the error message I get is the following >>>> >>>> [Session started at 2008-01-18 22:51:02 +0100.] >>>> /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/ >>>> Resources/rb_main.rb:24:in `NSApplicationMain': >>>> NSInvalidArgumentException - *** -[NSProxy >>>> doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) >>>> from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/ >>>> Contents/Resources/rb_main.rb:24 >>>> >>>> The Debugger has exited with status 1.The Debugger has exited >>>> with status 1. >>>> >>>> Any idea? >>>> >>>> Thanks! >>>> Ferhat >>>> >>>> >>>> Be a better friend, newshound, and know-it-all with Yahoo! >>>> Mobile. Try it now.. >>>> ------------------------------------------------------------------------- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Rubycocoa-talk mailing list >>>> Rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >>> >>> >>> Never miss a thing. Make Yahoo your homepage. >>> >>> >>> Never miss a thing. Make Yahoo your homepage. >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> >> Looking for last minute shopping deals? Find them fast with Yahoo! >> Search >> .------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> 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. <e....@su...> - 2008-01-20 11:39:26
|
Good :) So for the tablecolumn you explicitely need a NSDecimalNumber? Because you could try "content.to_ns", but that will return a regular NSNumber. Normally I would say try: OSX::NSDecimalNumber.decimalWithDecimal(content), but for some reason it expects 6 arguments instead of 1. Cheers, Eloy On 20 jan 2008, at 09:13, Ferhat Ayaz wrote: > ah! ok. Thank you very much. This does the trick. > > BTW, has somebody a more elegant solution to make a decimal number? > > class ProductProxy < OSX::ActiveRecordProxy > on_get :retail_price do |content| > OSX::NSDecimalNumber.alloc.initWithString(content.to_s) > > end > end > > Thanks, > Ferhat > > ----- Original Message ---- > From: Eloy Duran <e....@su...> > To: rub...@li... > Sent: Sunday, January 20, 2008 2:19:46 AM > Subject: Re: [Rubycocoa-talk] NSProxy > doesNotRecognizeSelector:copyWithZone: > > Hi, > > Have you tried using a on_get filter to change the value that is > returned ActiveRecord into something the table column wants? > For an example of this see: http://www.superalloy.nl/blog/2007/06/09/added-on_get-filter-class-method-to-activerecordproxy/ > > Eloy > > On 20 jan 2008, at 01:55, Ferhat Ayaz wrote: > >> Hi, >> >> I think I have an idea whats going wrong. I'm binding the >> arrangedObjects of ActiveRecordSetController to NSTableView column >> (usual stuff). >> >> But this is interesting: the decimal column (in my case the price >> of product) is the problem. >> >> I used an NSNumberFormatter in the table column cell to confirm >> this. And, indeed, I got this error: >> >> OSX::OCException: NSInternalInconsistencyException - Cannot create >> number from object <RBObject: 0x228b3b0> of class RBObject >> >> I think RBObject is in this case not the right type, is it? >> >> If I do not bind the price column, everything work fine. >> >> Is this a bug or am I just poor of knowledge? >> >> Thanks, >> Ferhat >> >> ----- Original Message ---- >> From: Ferhat Ayaz <fer...@ya...> >> To: rub...@li... >> Sent: Saturday, January 19, 2008 7:35:50 PM >> Subject: Re: [Rubycocoa-talk] NSProxy >> doesNotRecognizeSelector:copyWithZone: >> >> Hi Eloy, >> >> thank you for your reply. I'm trying to access an already existing >> database created by a rails application. The migration for the >> products table looks like this >> >> create_table :products do |t| >> t.column :title, :string >> t.column :description, :text >> t.column :image, :string >> t.column :price, :decimal, :null => false, :precision => >> 8, :scale => 2 >> t.column :asset, :decimal, :null => false, :precision => >> 8, :scale => 2 >> t.column :accepts_contract, :boolean, :default => true >> t.column :rank, :integer >> t.column :manufacturer_id, :integer >> t.column :created_at, :datetime >> t.column :updated_at, :datetime >> end >> >> (There are also other tables which I don't care for my rubycocoa >> application) >> >> Although there is a manufacturer_id, I didn't generate >> Manufacturer.rb using the generate.rb script (hint). This is really >> everything I've done. >> >> The following line causes the exception >> >> @products = Product.find(:all).to_activerecord_proxies >> >> If I try to use the first version without active_record, say: >> >> @products = [] >> >> everything is ok. >> >> The kvc_accessor :products is bind to the contentArray of an >> ActiveRecordSetController. >> >> RubyCocoa Version: 0.12.0 >> >> Thanks. >> Ferhat >> >> ----- Original Message ---- >> From: Eloy Duran <elo...@gm...> >> To: rub...@li...urceforge..net >> Sent: Saturday, January 19, 2008 7:02:44 PM >> Subject: Re: [Rubycocoa-talk] NSProxy >> doesNotRecognizeSelector:copyWithZone: >> >> Hi Ferhat, >> >> Unfortunately that error is too much of a general problem to be >> able to diagnose for me. >> Could you try to get some more detailed info on which code is >> causing the problem? >> >> Cheers, >> Eloy >> >> On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: >> >>> Hi, >>> >>> I'm trying to run an activerecordsupport application. I have added >>> an ActiveRecordSetController ArrayController in IB and set the >>> class name properly (in my case ProductProxy). >>> >>> here my simple controller code (inspired by the blog article by >>> Eloy Duran) >>> >>> >>> require 'osx/cocoa' >>> >>> class CNController < OSX::NSWindowController >>> kvc_accessor :products >>> >>> def init >>> if super_init >>> ActiveRecord::Base.establish_connection({ >>> :adapter => 'mysql', >>> :host => 'localhost', >>> >>> :username => 'root', >>> >>> :password => '', >>> :database => 'xyz_development' >>> >>> }) >>> @products = Product.find(:all).to_activerecord_proxies >>> return self >>> end >>> end >>> end >>> >>> >>> I have generated product.rb and product_proxy..rb using the handy >>> generate.rb script. >>> >>> So, the error message I get is the following >>> >>> [Session started at 2008-01-18 22:51:02 +0100.] >>> /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/ >>> Resources/rb_main.rb:24:in `NSApplicationMain': >>> NSInvalidArgumentException - *** -[NSProxy >>> doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) >>> from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/ >>> Contents/Resources/rb_main.rb:24 >>> >>> The Debugger has exited with status 1.The Debugger has exited with >>> status 1. >>> >>> Any idea? >>> >>> Thanks! >>> Ferhat >>> >>> >>> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. >>> Try it now.. >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Rubycocoa-talk mailing list >>> Rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> >> Never miss a thing. Make Yahoo your homepage. >> >> >> Never miss a thing. Make Yahoo your homepage. >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > > Looking for last minute shopping deals? Find them fast with Yahoo! > Search > .------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Ferhat A. <fer...@ya...> - 2008-01-20 08:39:58
|
ah! ok. Thank you very much. This does the trick. BTW, has somebody a more elegant solution to make a decimal number? class ProductProxy < OSX::ActiveRecordProxy on_get :retail_price do |content| OSX::NSDecimalNumber.alloc.initWithString(content.to_s) end end Thanks, Ferhat ----- Original Message ---- From: Eloy Duran <e....@su...> To: rub...@li... Sent: Sunday, January 20, 2008 2:19:46 AM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi, Have you tried using a on_get filter to change the value that is returned ActiveRecord into something the table column wants? For an example of this see: http://www.superalloy.nl/blog/2007/06/09/added-on_get-filter-class-method-to-activerecordproxy/ Eloy On 20 jan 2008, at 01:55, Ferhat Ayaz wrote: Hi, I think I have an idea whats going wrong. I'm binding the arrangedObjects of ActiveRecordSetController to NSTableView column (usual stuff). But this is interesting: the decimal column (in my case the price of product) is the problem. I used an NSNumberFormatter in the table column cell to confirm this. And, indeed, I got this error: OSX::OCException: NSInternalInconsistencyException - Cannot create number from object <RBObject: 0x228b3b0> of class RBObject I think RBObject is in this case not the right type, is it? If I do not bind the price column, everything work fine. Is this a bug or am I just poor of knowledge? Thanks, Ferhat ----- Original Message ---- From: Ferhat Ayaz <fer...@ya...> To: rub...@li... Sent: Saturday, January 19, 2008 7:35:50 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi Eloy, thank you for your reply. I'm trying to access an already existing database created by a rails application. The migration for the products table looks like this create_table :products do |t| t.column :title, :string t.column :description, :text t.column :image, :string t.column :price, :decimal, :null => false, :precision => 8, :scale => 2 t.column :asset, :decimal, :null => false, :precision => 8, :scale => 2 t.column :accepts_contract, :boolean, :default => true t.column :rank, :integer t.column :manufacturer_id, :integer t.column :created_at, :datetime t.column :updated_at, :datetime end (There are also other tables which I don't care for my rubycocoa application) Although there is a manufacturer_id, I didn't generate Manufacturer.rb using the generate.rb script (hint). This is really everything I've done. The following line causes the exception @products = Product.find(:all).to_activerecord_proxies If I try to use the first version without active_record, say: @products = [] everything is ok. The kvc_accessor :products is bind to the contentArray of an ActiveRecordSetController. RubyCocoa Version: 0.12.0 Thanks. Ferhat ----- Original Message ---- From: Eloy Duran <elo...@gm...> To: rub...@li...urceforge..net Sent: Saturday, January 19, 2008 7:02:44 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi Ferhat, Unfortunately that error is too much of a general problem to be able to diagnose for me. Could you try to get some more detailed info on which code is causing the problem? Cheers, Eloy On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: Hi, I'm trying to run an activerecordsupport application. I have added an ActiveRecordSetController ArrayController in IB and set the class name properly (in my case ProductProxy). here my simple controller code (inspired by the blog article by Eloy Duran) require 'osx/cocoa' class CNController < OSX::NSWindowController kvc_accessor :products def init if super_init ActiveRecord::Base.establish_connection({ :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => '', :database => 'xyz_development' }) @products = Product.find(:all).to_activerecord_proxies return self end end end I have generated product.rb and product_proxy..rb using the handy generate.rb script. So, the error message I get is the following [Session started at 2008-01-18 22:51:02 +0100.] /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24:in `NSApplicationMain': NSInvalidArgumentException - *** -[NSProxy doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24 The Debugger has exited with status 1.The Debugger has exited with status 1. Any idea? Thanks! Ferhat Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk Never miss a thing. Make Yahoo your homepage. Never miss a thing. Make Yahoo your homepage. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
From: Ferhat A. <fer...@ya...> - 2008-01-20 02:50:15
|
Hi Eloy, thank you for your reply. I'm trying to access an already existing database created by a rails application. The migration for the products table looks like this create_table :products do |t| t.column :title, :string t.column :description, :text t.column :image, :string t.column :price, :decimal, :null => false, :precision => 8, :scale => 2 t.column :asset, :decimal, :null => false, :precision => 8, :scale => 2 t.column :accepts_contract, :boolean, :default => true t.column :rank, :integer t.column :manufacturer_id, :integer t.column :created_at, :datetime t.column :updated_at, :datetime end (There are also other tables which I don't care for my rubycocoa application) Although there is a manufacturer_id, I didn't generate Manufacturer.rb using the generate.rb script (hint). This is really everything I've done. The following line causes the exception @products = Product.find(:all).to_activerecord_proxies If I try to use the first version without active_record, say: @products = [] everything is ok. The kvc_accessor :products is bind to the contentArray of an ActiveRecordSetController. RubyCocoa Version: 0.12.0 Thanks. Ferhat ----- Original Message ---- From: Eloy Duran <elo...@gm...> To: rub...@li... Sent: Saturday, January 19, 2008 7:02:44 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi Ferhat, Unfortunately that error is too much of a general problem to be able to diagnose for me. Could you try to get some more detailed info on which code is causing the problem? Cheers, Eloy On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: Hi, I'm trying to run an activerecordsupport application. I have added an ActiveRecordSetController ArrayController in IB and set the class name properly (in my case ProductProxy). here my simple controller code (inspired by the blog article by Eloy Duran) require 'osx/cocoa' class CNController < OSX::NSWindowController kvc_accessor :products def init if super_init ActiveRecord::Base.establish_connection({ :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => '', :database => 'xyz_development' }) @products = Product.find(:all).to_activerecord_proxies return self end end end I have generated product.rb and product_proxy.rb using the handy generate.rb script. So, the error message I get is the following [Session started at 2008-01-18 22:51:02 +0100.] /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24:in `NSApplicationMain': NSInvalidArgumentException - *** -[NSProxy doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24 The Debugger has exited with status 1.The Debugger has exited with status 1. Any idea? Thanks! Ferhat Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
From: Eloy D. <e....@su...> - 2008-01-20 01:19:58
|
Hi, Have you tried using a on_get filter to change the value that is returned ActiveRecord into something the table column wants? For an example of this see: http://www.superalloy.nl/blog/2007/06/09/added-on_get-filter-class-method-to-activerecordproxy/ Eloy On 20 jan 2008, at 01:55, Ferhat Ayaz wrote: > Hi, > > I think I have an idea whats going wrong. I'm binding the > arrangedObjects of ActiveRecordSetController to NSTableView column > (usual stuff). > > But this is interesting: the decimal column (in my case the price > of product) is the problem. > > I used an NSNumberFormatter in the table column cell to confirm > this. And, indeed, I got this error: > > OSX::OCException: NSInternalInconsistencyException - Cannot create > number from object <RBObject: 0x228b3b0> of class RBObject > > I think RBObject is in this case not the right type, is it? > > If I do not bind the price column, everything work fine. > > Is this a bug or am I just poor of knowledge? > > Thanks, > Ferhat > > ----- Original Message ---- > From: Ferhat Ayaz <fer...@ya...> > To: rub...@li... > Sent: Saturday, January 19, 2008 7:35:50 PM > Subject: Re: [Rubycocoa-talk] NSProxy > doesNotRecognizeSelector:copyWithZone: > > Hi Eloy, > > thank you for your reply. I'm trying to access an already existing > database created by a rails application. The migration for the > products table looks like this > > create_table :products do |t| > t.column :title, :string > t.column :description, :text > t.column :image, :string > t.column :price, :decimal, :null => false, :precision => > 8, :scale => 2 > t.column :asset, :decimal, :null => false, :precision => > 8, :scale => 2 > t.column :accepts_contract, :boolean, :default => true > t.column :rank, :integer > t.column :manufacturer_id, :integer > t.column :created_at, :datetime > t.column :updated_at, :datetime > end > > (There are also other tables which I don't care for my rubycocoa > application) > > Although there is a manufacturer_id, I didn't generate > Manufacturer.rb using the generate.rb script (hint). This is really > everything I've done. > > The following line causes the exception > > @products = Product.find(:all).to_activerecord_proxies > > If I try to use the first version without active_record, say: > > @products = [] > > everything is ok. > > The kvc_accessor :products is bind to the contentArray of an > ActiveRecordSetController. > > RubyCocoa Version: 0.12.0 > > Thanks. > Ferhat > > ----- Original Message ---- > From: Eloy Duran <elo...@gm...> > To: rub...@li...urceforge..net > Sent: Saturday, January 19, 2008 7:02:44 PM > Subject: Re: [Rubycocoa-talk] NSProxy > doesNotRecognizeSelector:copyWithZone: > > Hi Ferhat, > > Unfortunately that error is too much of a general problem to be able > to diagnose for me. > Could you try to get some more detailed info on which code is > causing the problem? > > Cheers, > Eloy > > On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: > >> Hi, >> >> I'm trying to run an activerecordsupport application. I have added >> an ActiveRecordSetController ArrayController in IB and set the >> class name properly (in my case ProductProxy). >> >> here my simple controller code (inspired by the blog article by >> Eloy Duran) >> >> >> require 'osx/cocoa' >> >> class CNController < OSX::NSWindowController >> kvc_accessor :products >> >> def init >> if super_init >> ActiveRecord::Base.establish_connection({ >> :adapter => 'mysql', >> :host => 'localhost', >> >> :username => 'root', >> >> :password => '', >> :database => 'xyz_development' >> >> }) >> @products = Product.find(:all).to_activerecord_proxies >> return self >> end >> end >> end >> >> >> I have generated product.rb and product_proxy..rb using the handy >> generate.rb script. >> >> So, the error message I get is the following >> >> [Session started at 2008-01-18 22:51:02 +0100.] >> /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/ >> Resources/rb_main.rb:24:in `NSApplicationMain': >> NSInvalidArgumentException - *** -[NSProxy >> doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) >> from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/ >> Contents/Resources/rb_main.rb:24 >> >> The Debugger has exited with status 1.The Debugger has exited with >> status 1. >> >> Any idea? >> >> Thanks! >> Ferhat >> >> >> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. >> Try it now.. >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > Never miss a thing. Make Yahoo your homepage. > > > Never miss a thing. Make Yahoo your homepage. > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Ferhat A. <fer...@ya...> - 2008-01-20 00:55:47
|
Hi, I think I have an idea whats going wrong. I'm binding the arrangedObjects of ActiveRecordSetController to NSTableView column (usual stuff). But this is interesting: the decimal column (in my case the price of product) is the problem. I used an NSNumberFormatter in the table column cell to confirm this. And, indeed, I got this error: OSX::OCException: NSInternalInconsistencyException - Cannot create number from object <RBObject: 0x228b3b0> of class RBObject I think RBObject is in this case not the right type, is it? If I do not bind the price column, everything work fine. Is this a bug or am I just poor of knowledge? Thanks, Ferhat ----- Original Message ---- From: Ferhat Ayaz <fer...@ya...> To: rub...@li... Sent: Saturday, January 19, 2008 7:35:50 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi Eloy, thank you for your reply. I'm trying to access an already existing database created by a rails application. The migration for the products table looks like this create_table :products do |t| t.column :title, :string t.column :description, :text t.column :image, :string t.column :price, :decimal, :null => false, :precision => 8, :scale => 2 t.column :asset, :decimal, :null => false, :precision => 8, :scale => 2 t.column :accepts_contract, :boolean, :default => true t.column :rank, :integer t.column :manufacturer_id, :integer t.column :created_at, :datetime t.column :updated_at, :datetime end (There are also other tables which I don't care for my rubycocoa application) Although there is a manufacturer_id, I didn't generate Manufacturer.rb using the generate.rb script (hint). This is really everything I've done. The following line causes the exception @products = Product.find(:all).to_activerecord_proxies If I try to use the first version without active_record, say: @products = [] everything is ok. The kvc_accessor :products is bind to the contentArray of an ActiveRecordSetController. RubyCocoa Version: 0.12.0 Thanks. Ferhat ----- Original Message ---- From: Eloy Duran <elo...@gm...> To: rub...@li... Sent: Saturday, January 19, 2008 7:02:44 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi Ferhat, Unfortunately that error is too much of a general problem to be able to diagnose for me. Could you try to get some more detailed info on which code is causing the problem? Cheers, Eloy On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: Hi, I'm trying to run an activerecordsupport application. I have added an ActiveRecordSetController ArrayController in IB and set the class name properly (in my case ProductProxy). here my simple controller code (inspired by the blog article by Eloy Duran) require 'osx/cocoa' class CNController < OSX::NSWindowController kvc_accessor :products def init if super_init ActiveRecord::Base.establish_connection({ :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => '', :database => 'xyz_development' }) @products = Product.find(:all).to_activerecord_proxies return self end end end I have generated product.rb and product_proxy.rb using the handy generate.rb script. So, the error message I get is the following [Session started at 2008-01-18 22:51:02 +0100.] /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24:in `NSApplicationMain': NSInvalidArgumentException - *** -[NSProxy doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24 The Debugger has exited with status 1.The Debugger has exited with status 1. Any idea? Thanks! Ferhat Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk Never miss a thing. Make Yahoo your homepage. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs |
From: Ferhat A. <fer...@ya...> - 2008-01-19 18:39:13
|
I forgot to write that the ActiveRecordSupport works fine for me when I use another test database with one simple table. Ferhat ----- Original Message ---- From: Eloy Duran <elo...@gm...> To: rub...@li... Sent: Saturday, January 19, 2008 7:02:44 PM Subject: Re: [Rubycocoa-talk] NSProxy doesNotRecognizeSelector:copyWithZone: Hi Ferhat, Unfortunately that error is too much of a general problem to be able to diagnose for me. Could you try to get some more detailed info on which code is causing the problem? Cheers, Eloy On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: Hi, I'm trying to run an activerecordsupport application. I have added an ActiveRecordSetController ArrayController in IB and set the class name properly (in my case ProductProxy). here my simple controller code (inspired by the blog article by Eloy Duran) require 'osx/cocoa' class CNController < OSX::NSWindowController kvc_accessor :products def init if super_init ActiveRecord::Base.establish_connection({ :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => '', :database => 'xyz_development' }) @products = Product.find(:all).to_activerecord_proxies return self end end end I have generated product.rb and product_proxy.rb using the handy generate.rb script. So, the error message I get is the following [Session started at 2008-01-18 22:51:02 +0100.] /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24:in `NSApplicationMain': NSInvalidArgumentException - *** -[NSProxy doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24 The Debugger has exited with status 1.The Debugger has exited with status 1. Any idea? Thanks! Ferhat Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Rubycocoa-talk mailing list Rub...@li... https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs |
From: Eloy D. <elo...@gm...> - 2008-01-19 18:02:54
|
Hi Ferhat, Unfortunately that error is too much of a general problem to be able to diagnose for me. Could you try to get some more detailed info on which code is causing the problem? Cheers, Eloy On 18-jan-2008, at 22:59, Ferhat Ayaz <fer...@ya...> wrote: > Hi, > > I'm trying to run an activerecordsupport application. I have added > an ActiveRecordSetController ArrayController in IB and set the class > name properly (in my case ProductProxy). > > here my simple controller code (inspired by the blog article by Eloy > Duran) > > > require 'osx/cocoa' > > class CNController < OSX::NSWindowController > kvc_accessor :products > > > def init > if super_init > ActiveRecord::Base.establish_connection({ > :adapter => 'mysql', > :host => 'localhost', > :username => 'root', > :password => '', > :database => 'xyz_development' > }) > @products = Product.find(:all).to_activerecord_proxies > return self > end > end > end > > > I have generated product.rb and product_proxy.rb using the handy > generate.rb script. > > So, the error message I get is the following > > [Session started at 2008-01-18 22:51:02 +0100.] > /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/ > Resources/rb_main.rb:24:in `NSApplicationMain': > NSInvalidArgumentException - *** -[NSProxy > doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) > from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/ > Contents/Resources/rb_main.rb:24 > > The Debugger has exited with status 1.The Debugger has exited with > status 1. > > Any idea? > > Thanks! > Ferhat > > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. > Try it now. > --- > ---------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Ferhat A. <fer...@ya...> - 2008-01-18 21:59:36
|
Hi, I'm trying to run an activerecordsupport application. I have added an ActiveRecordSetController ArrayController in IB and set the class name properly (in my case ProductProxy). here my simple controller code (inspired by the blog article by Eloy Duran) require 'osx/cocoa' class CNController < OSX::NSWindowController kvc_accessor :products def init if super_init ActiveRecord::Base.establish_connection({ :adapter => 'mysql', :host => 'localhost', :username => 'root', :password => '', :database => 'xyz_development' }) @products = Product.find(:all).to_activerecord_proxies return self end end end I have generated product.rb and product_proxy.rb using the handy generate.rb script. So, the error message I get is the following [Session started at 2008-01-18 22:51:02 +0100.] /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24:in `NSApplicationMain': NSInvalidArgumentException - *** -[NSProxy doesNotRecognizeSelector:copyWithZone:] called! (OSX::OCException) from /Users/ayaz/Projects/CNClient/build/Debug/CNClient.app/Contents/Resources/rb_main.rb:24 The Debugger has exited with status 1.The Debugger has exited with status 1. Any idea? Thanks! Ferhat ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: Rich W. <rw...@gm...> - 2008-01-16 08:49:10
|
Hi, I have a ruby core data app that I'm working fine with the default Ruby installation that comes with Leopard. When I run 'gem update --include-dependencies' to update all installed gems, the app breaks. I'm not getting any errors in the console. It just dumps me into the debugger. I've tested the gems that I'm using in irb, and they load and work fine. In the debugger, I just see a bunch of assembly code (no recognizable error message here either). However, it gives me the following stack trace: #0 0x000cf719 in rb_check_type #1 0x0079f689 in ruby_xml_node_deregisterNode #2 0x9041539e in xmlUCSIsCatZs #3 0x90417d2f in xmlReaderNewIO #4 0x9037937e in xmlTextReaderRead #5 0x9644665d in -[NSXMLTreeReader parse] #6 0x9642444a in -[NSXMLDocument initWithData:options:error:] #7 0x965680e8 in -[NSXMLDocument initWithContentsOfURL:options:error:] #8 0x904c6766 in -[NSXMLObjectStore initWithPersistentStoreCoordinator:configurationName:URL:options:] #9 0x9045dabb in -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] So, I'm guessing there's a RubyCocoa error while loading data from Core Data. Is RubyCocoa incompatible with the latest version of one of the libraries? Can anyone else duplicate this? If I revert back to the un-upgraded gems, everything works fine again. I'd appreciate any suggestions or advice. -Rich- |
From: Patrick G. <pge...@wa...> - 2008-01-15 21:11:54
|
Hello, I need to allocate an ObjcPtr of AXUIElement encoding to pass as argument to AXUIElementCopyAttributeValue. RubyCocoa 0.13 release notes mention ObjcPtr#cast_as(encoding) "for more generic casting from void*" and looks like it will do the job. Is this the right function ? Is there an equivalent for RubyCocoa shipping with Leopard ? Thanks, -Patrck |
From: Patrick G. <pge...@wa...> - 2008-01-15 15:11:35
|
> $ sudo mkdir /System/Library/Frameworks/ApplicationServices.framework/ > Frameworks/HIServices.framework/Resources/BridgeSupport > $ sudo gen_bridge_metadata -f /System/Library/Frameworks/ > ApplicationServices.framework/Frameworks/HIServices.framework -c '- > framework ApplicationServices -F/System/Library/Frameworks/ > ApplicationServices.framework/Frameworks' -o /System/Library/ > Frameworks/ApplicationServices.framework/Frameworks/ > HIServices.framework/Resources/BridgeSupport/HIServices.bridgesupport > $ irb -r osx/cocoa >> OSX.require_framework '/System/Library/Frameworks/ > ApplicationServices.framework/Frameworks/HIServices.framework' >> OSX::AXUIElementCopyElementAtPosition(...) The BridgeSupport generation worked perfectly. There was a problem =20 with the generated file though, as the InternetConfig.h contains some =20= strange characters #define kICHelper "\pHelper=A5" (shows up as a =20 middle dot in XCode, as a Yen sign in Textmate) and RubyCocoa copied these verbatim and couldn't parse the file. After =20= removing them, it works fine. Thanks again ! -Patrick= |
From: Laurent S. <lsa...@ap...> - 2008-01-15 12:41:21
|
Hi Patrick, Unfortunately, HIServices is not covered yet by bridge support. I suggest you to file an Apple bug (http://bugreporter.apple.com) for this and request the file to be created in the future. In the meantime, you can either generate a file by yourself (see gen_bridge_metadata(1) for some help), manually bind the functions using a C extension, or use the dynamic linker (dyld) at runtime. If you want to go with the gen_bridge_metadata way, the following should work (untested though) $ sudo mkdir /System/Library/Frameworks/ApplicationServices.framework/ Frameworks/HIServices.framework/Resources/BridgeSupport $ sudo gen_bridge_metadata -f /System/Library/Frameworks/ ApplicationServices.framework/Frameworks/HIServices.framework -c '- framework ApplicationServices -F/System/Library/Frameworks/ ApplicationServices.framework/Frameworks' -o /System/Library/ Frameworks/ApplicationServices.framework/Frameworks/ HIServices.framework/Resources/BridgeSupport/HIServices.bridgesupport $ irb -r osx/cocoa > OSX.require_framework '/System/Library/Frameworks/ ApplicationServices.framework/Frameworks/HIServices.framework' > OSX::AXUIElementCopyElementAtPosition(...) HTH, Laurent On Jan 15, 2008, at 11:20 AM, Patrick Geiller wrote: > Hello, > > I'm trying to call accessibility functions (like > AXUIElementCopyElementAtPosition). I've included the framework with > require_framework 'ApplicationServices', but all I get is an > 'undefined method' error. > > On disk, Application Services is split up in subframeworks and > HIServices (containing AX*) does not contain a BridgeSupport > directory. Is the BridgeSupport defined elsewhere ? Do I need to > generate it for this particular framework ? Is there any other way to > call these functions ? > > > Thanks, > - Patrick > > > > ------------------------------------------------------------------------- > 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: Patrick G. <pge...@wa...> - 2008-01-15 10:20:44
|
Hello, I'm trying to call accessibility functions (like AXUIElementCopyElementAtPosition). I've included the framework with require_framework 'ApplicationServices', but all I get is an 'undefined method' error. On disk, Application Services is split up in subframeworks and HIServices (containing AX*) does not contain a BridgeSupport directory. Is the BridgeSupport defined elsewhere ? Do I need to generate it for this particular framework ? Is there any other way to call these functions ? Thanks, - Patrick |
From: Rich W. <rw...@gm...> - 2008-01-14 21:41:44
|
Thanks Eloy! Everything worked fine on my system. -Rich- On Jan 13, 2008 6:28 AM, Eloy Duran <e....@su...> wrote: > Apple has now changed their html layout completely. > I fixed this in svn revision 2168, so you'll need to get that to be > able to use it. > > I haven't et fixed any errors that are caused by misspelling methods > names etc, > but this will parse the majority of the docs. > > Cheers, > Eloy > > On 13 jan 2008, at 10:37, Rich Warren wrote: > > > Ah, I see. Thanks for letting me know. > > > > -Rich- > > > > On Jan 12, 2008, at 2:15 PM, Eloy Duran wrote: > > > >> Hi, > >> > >> Ok, so the problem is that apple's docs change horribly some (most) > >> of > >> the times > >> when they do an update. And this breaks the parsing. > >> > >> Anyways, I'll try to update it asap for the latest documentation > >> update. > >> > >> Eloy > >> > >> On 13 jan 2008, at 00:40, Rich Warren wrote: > >> > >>> Hi, > >>> > >>> I'm not entirely sure what your asking. > >>> > >>> I'm trying to install the documentation from the 0.13.0 source of > >>> RubyCocoa onto a Leopard system. > >>> > >>> I'm using whatever default version of RubyCocoa Leopard has > >>> installed. I'm not sure how to find the documentation date from > >>> XCode's preferences--and I don't really see how that will affect > >>> installing the RubyCocoa docs from source. But, I had recently > >>> updated > >>> to the latest docs. > >>> > >>> -Rich- > >>> > >>> On Jan 11, 2008, at 1:57 AM, Eloy Duran wrote: > >>> > >>>> Hi Rich, > >>>> > >>>> Which versionof RubyCocoa are you exactly using? (from source?) > >>>> And what version (which date) is your documentation? You can check > >>>> this in the preferences of XCode.app > >>>> > >>>> Cheers, > >>>> Eloy > >>>> > >>>> On 11 jan 2008, at 11:34, Rich Warren wrote: > >>>> > >>>>> 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 > >>>>> > >>>>> > >>>>> > ------------------------------------------------------------------------- > >>>>> 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 > >>>> > >>>> > >>>> > ------------------------------------------------------------------------- > >>>> 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 > >>> > >>> > >>> > ------------------------------------------------------------------------- > >>> 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 > >> > >> > >> > ------------------------------------------------------------------------- > >> 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 > > > > > > > ------------------------------------------------------------------------- > > 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 > > > ------------------------------------------------------------------------- > 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: Benjamin D. <bdu...@gm...> - 2008-01-14 06:04:55
|
Turns out, I was #importing a C++ header file instead of #include. Also, the same file with the aforementioned error needed to be a *.mm . All is linking well now. Thanks, B On Jan 12, 2008 5:20 PM, Neil Stevens <ne...@ha...> wrote: > Benjamin Dunton wrote: > > All, > > I have a program that is specifically told to link as objective-C++. > When I > > do this, RBApplicationMain is undefined at link time (it is linked as a > > framework, and on the link line.) If I change to "According to Source > > Type", it would work, but I have some code in a *.h file that is C++ > > specific that does not compile properly (I'm assuming because it is > reading > > the .h file according to obj-c rules). > > > > Can anyone help? > > extern "C" > { > #include <RBRuntime.h> > } > > You probably need to change your include like so, to get C linkage for > that function. > -- > Neil Stevens - ne...@ha... > > If you're seeing shades of gray, it's because you're not > looking close enough to see the black and white dots. > > > ------------------------------------------------------------------------- > 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. <e....@su...> - 2008-01-13 16:28:24
|
Apple has now changed their html layout completely. I fixed this in svn revision 2168, so you'll need to get that to be able to use it. I haven't et fixed any errors that are caused by misspelling methods names etc, but this will parse the majority of the docs. Cheers, Eloy On 13 jan 2008, at 10:37, Rich Warren wrote: > Ah, I see. Thanks for letting me know. > > -Rich- > > On Jan 12, 2008, at 2:15 PM, Eloy Duran wrote: > >> Hi, >> >> Ok, so the problem is that apple's docs change horribly some (most) >> of >> the times >> when they do an update. And this breaks the parsing. >> >> Anyways, I'll try to update it asap for the latest documentation >> update. >> >> Eloy >> >> On 13 jan 2008, at 00:40, Rich Warren wrote: >> >>> Hi, >>> >>> I'm not entirely sure what your asking. >>> >>> I'm trying to install the documentation from the 0.13.0 source of >>> RubyCocoa onto a Leopard system. >>> >>> I'm using whatever default version of RubyCocoa Leopard has >>> installed. I'm not sure how to find the documentation date from >>> XCode's preferences--and I don't really see how that will affect >>> installing the RubyCocoa docs from source. But, I had recently >>> updated >>> to the latest docs. >>> >>> -Rich- >>> >>> On Jan 11, 2008, at 1:57 AM, Eloy Duran wrote: >>> >>>> Hi Rich, >>>> >>>> Which versionof RubyCocoa are you exactly using? (from source?) >>>> And what version (which date) is your documentation? You can check >>>> this in the preferences of XCode.app >>>> >>>> Cheers, >>>> Eloy >>>> >>>> On 11 jan 2008, at 11:34, Rich Warren wrote: >>>> >>>>> 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 >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> 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 >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> 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 >>> >>> >>> ------------------------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------------------------- >> 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 > > > ------------------------------------------------------------------------- > 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. <e....@su...> - 2008-01-13 14:12:41
|
I see, xcode 3 changed the way to update the docs. I can't find it in the preferences anymore. Does anyone know where/how I can get the latest update?? Eloy On 13 jan 2008, at 10:37, Rich Warren wrote: > Ah, I see. Thanks for letting me know. > > -Rich- > > On Jan 12, 2008, at 2:15 PM, Eloy Duran wrote: > >> Hi, >> >> Ok, so the problem is that apple's docs change horribly some (most) >> of >> the times >> when they do an update. And this breaks the parsing. >> >> Anyways, I'll try to update it asap for the latest documentation >> update. >> >> Eloy >> >> On 13 jan 2008, at 00:40, Rich Warren wrote: >> >>> Hi, >>> >>> I'm not entirely sure what your asking. >>> >>> I'm trying to install the documentation from the 0.13.0 source of >>> RubyCocoa onto a Leopard system. >>> >>> I'm using whatever default version of RubyCocoa Leopard has >>> installed. I'm not sure how to find the documentation date from >>> XCode's preferences--and I don't really see how that will affect >>> installing the RubyCocoa docs from source. But, I had recently >>> updated >>> to the latest docs. >>> >>> -Rich- >>> >>> On Jan 11, 2008, at 1:57 AM, Eloy Duran wrote: >>> >>>> Hi Rich, >>>> >>>> Which versionof RubyCocoa are you exactly using? (from source?) >>>> And what version (which date) is your documentation? You can check >>>> this in the preferences of XCode.app >>>> >>>> Cheers, >>>> Eloy >>>> >>>> On 11 jan 2008, at 11:34, Rich Warren wrote: >>>> >>>>> 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 >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> 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 >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> 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 >>> >>> >>> ------------------------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------------------------- >> 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 > > > ------------------------------------------------------------------------- > 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...> - 2008-01-13 09:37:36
|
Ah, I see. Thanks for letting me know. -Rich- On Jan 12, 2008, at 2:15 PM, Eloy Duran wrote: > Hi, > > Ok, so the problem is that apple's docs change horribly some (most) of > the times > when they do an update. And this breaks the parsing. > > Anyways, I'll try to update it asap for the latest documentation > update. > > Eloy > > On 13 jan 2008, at 00:40, Rich Warren wrote: > >> Hi, >> >> I'm not entirely sure what your asking. >> >> I'm trying to install the documentation from the 0.13.0 source of >> RubyCocoa onto a Leopard system. >> >> I'm using whatever default version of RubyCocoa Leopard has >> installed. I'm not sure how to find the documentation date from >> XCode's preferences--and I don't really see how that will affect >> installing the RubyCocoa docs from source. But, I had recently >> updated >> to the latest docs. >> >> -Rich- >> >> On Jan 11, 2008, at 1:57 AM, Eloy Duran wrote: >> >>> Hi Rich, >>> >>> Which versionof RubyCocoa are you exactly using? (from source?) >>> And what version (which date) is your documentation? You can check >>> this in the preferences of XCode.app >>> >>> Cheers, >>> Eloy >>> >>> On 11 jan 2008, at 11:34, Rich Warren wrote: >>> >>>> 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 >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> 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 >>> >>> >>> ------------------------------------------------------------------------- >>> 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 >> >> >> ------------------------------------------------------------------------- >> 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 > > > ------------------------------------------------------------------------- > 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 |