[Rubycocoa-devel 748] Re: auto-objc_export for Informal Protocol methods

Back to archive index

kimura wataru kimur****@i*****
Sun Feb 18 11:29:27 JST 2007


On Sat, 17 Feb 2007 17:35:43 +0100, Laurent Sansonetti wrote:
> Hi Kimura-san,
> 
> This looks good, however why would this be needed in reality? 
> Normally you don't have to objc_export the informal protocol methods 
> as RubyCocoa will handle this in RBObject. From the Objective-C 
> runtime it doesn't matter if the informal protocol method is 
> objc_exported or not.
> 

Thanks Laurent, you are just right. It's my misunderstanding.

I talked with hisa that sample/Fortune.wdgt requires objc_export for
informal protocols. We thought this feature will solve the problem,
but not.

Now, I found the cause of the problem. 
RubyCocoa do not load bridge support files when its framework (NSBundle)
are already loaded.

Fortune.wdgt:
  * WebKit.framework are loaded by Dashboard
  -> RubyCocoa don't load WebKit.bridgesupport
  -> RubyCocoa cannot handle the WebScripting informal protocol 

.bundle
  * AppKit.framework are loaded by a host application
  -> RubyCocoa don't load AppKit.bridgesupport
  -> RubyCocoa cannot find NSApp, NSRunAlertPanel,..


I'll try to fix this.

-- 
kimura wataru



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