The constant *should* be there - this is an excerpt from my HIServices/ InternetConfig.h / ************************************************************************************************ Apple event constants ************************************************************************************************/ enum { kInternetEventClass = 'GURL', kAEGetURL = 'GURL', kAEFetchURL = 'FURL', keyAEAttaching = 'Atch' };
On Jan 10, 7:18 pm, Martin Hawkins <martin.hawk...@gmail.com> wrote: > Now that's interesting - I tried your macirb experiment and get a > different result: > mar...@polaris:~ macirb > irb(main):001:0> framework 'Foundation' > => true > irb(main):002:0> KInternetEventClass > NameError: uninitialized constant KInternetEventClass > > irb(main):003:0> framework 'Cocoa' > => true > irb(main):004:0> KInternetEventClass > NameError: uninitialized constant KInternetEventClass > > On Jan 10, 7:06 pm, Caio Chassot <li...@caiochassot.com> wrote: > > > > > On 2011-01-10, at 16:47 , Martin Hawkins wrote: > > > > Excellent Caio - thanks. > > > Now I've gone full circle and am getting > > > 'AppDelegate::KInternetEventClass (NameError) > > > from /Users/martin/work/macruby/experimental/build/Debug/ > > > experimental.app/Contents/' > > > Maybe that constant is not there after all? > > > Try `::KInternetEventClass` to force ruby to search for it in the root > > namespace. > > > Are you loading Cocoa in your app? > > > $ macirb > > irb(main):001:0> framework 'Foundation' > > => true > > irb(main):002:0> KInternetEventClass > > NameError: uninitialized constant KInternetEventClass > > > irb(main):003:0> framework 'Cocoa' > > => true > > irb(main):004:0> KInternetEventClass > > => 1196773964 > > > _______________________________________________ > > MacRuby-devel mailing list > > macruby-de...@lists.macosforge.orghttp://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > _______________________________________________ > MacRuby-devel mailing list > macruby-de...@lists.macosforge.orghttp://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel