Eloy Duran
eloy.****@gmail*****
Tue Jun 5 23:24:23 JST 2007
Hi Kimura-san, Ahh, I understand the problem now. Once/if you cook up a patch for this I will update the source to use Object.const_set(). Domo arigato! Eloy > RubyCocoa add a subclass of a Cocoa class with the class object > and its name in OSX.objc_derived_class_new. I think to separate > the procedure into two steps(*) enables to handle unnamed classes. > > * (1) add a class object into ObjC runtime > (2) bind the class name and the class object > > I'll try to make a patch. > > On Tue, 5 Jun 2007 22:49:52 +0900, kimura wataru wrote: > > Hi, > > > > > On Tue, 5 Jun 2007 11:17:02 +0200, Eloy Duran wrote: > >> Hello guys, > >> > >> In revision 1816 I added the code to dynamically define a class when a > >> ActiveRecord::Base subclass is defined. > >> However at the moment the only way I could get this to work is by > >> using old evil eval, but I would rather define it with > >> Object.const_set(). > >> If I use Object.const_set() I get the following error: > >> > > _______________________________________________ > Rubycocoa-devel mailing list > Rubyc****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/rubycocoa-devel >