From: Eloy D. <elo...@gm...> - 2010-08-10 09:23:42
|
Sorry, been a while since I've done RubyCocoa, my answer was incomplete. You will have to explicitly export the method to the objc runtime. See this example: http://github.com/Fingertips/headless-squirrel/blob/master/lib/headless_squirrel/console.rb#L4 Eloy On Tue, Aug 10, 2010 at 11:12 AM, Eloy Duran <elo...@gm...> wrote: > Hi Stefan, > > The method would be written as: > > class MyClass > def self.isSelectorExcludedFromWebScript(sel) > #... > end > end > > HTH, > Eloy > > On Mon, Aug 9, 2010 at 9:56 PM, Stefan Bracke > <ste...@gi...> wrote: >> Hi all, >> i am not sure how to implement a class method >> like "isSelectorExcludedFromWebScript". >> This method allows me to tell WebKit implementation that a certain function >> can be called from the webpage in the Webkit environment. >> So, to put it in context: I am using WebKit and I would like a javascript to >> execute a RubyCocoa function. >> (My source is: http://www.thimbleby.net/script ) >> Cheers all, >> Stefan >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> >> > |