[Rubycocoa-devel 290] some change about const_missing

Back to archive index

kimura wataru kimur****@i*****
Mon Jun 12 22:42:04 JST 2006


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

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.

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.


-- 
kimura wataru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const_missing_to_import.patch
Type: application/octet-stream
Size: 1788 bytes
Desc: not available
Url : http://lists.sourceforge.jp/mailman/archives/rubycocoa-devel/attachments/20060612/e5c515af/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_add_attachment.patch
Type: application/octet-stream
Size: 1895 bytes
Desc: not available
Url : http://lists.sourceforge.jp/mailman/archives/rubycocoa-devel/attachments/20060612/e5c515af/attachment-0001.obj 


More information about the Rubycocoa-devel mailing list
Back to archive index