[MacRuby-devel] Custom url scheme

Caio Chassot lists at caiochassot.com
Mon Jan 10 11:06:02 PST 2011


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




More information about the MacRuby-devel mailing list