Laurent Sansonetti
lsans****@apple*****
Mon Jun 12 23:30:30 JST 2006
Hi Kimura-san, On Jun 12, 2006, at 3:42 PM, kimura wataru wrote: > Hi, > > I wrote two patches to apple-unstable branch. > > 1. const_missing > > This patch enables to keep other module's const_missing before > included. > > include OtherModule # has const_missing > include OSX > NSArray # by OSX.const_missing > OtherConst # by OtherModule.const_missing > UnknownConst # => NameError > Right! > I think that definition of const_missing and > load_bridge_support_signatures > in osx/objc/cocoa.rb are tied to OSX.ns_import, and these code > should be in > osx/objc/oc_import.rb. > I agree too, I originally quickly wrote this code in cocoa.rb, but it makes more sense to move it to oc_import.rb as you suggested. > 2. remove add_attachments() from objc/mdl_osxobjc.m > > The future "class hierarchy" (in rubycocoa-deve:266) enabled to > lookup methods of Cocoa superclass. In current implementation, > RubyCocoa checks each object whether it accept attachment module > or not. We can replace this procedure to include attachment > module for target classes. Ah yes, that's what Jonathan was proposing earlier IIRC. That's cool, 3 costly objective-c calls less. I applied the patches in the branch, Arigato! Laurent