From: DeNigris S. <se...@cl...> - 2010-02-17 19:01:25
|
List, I want to call the undocumented function (I believe from Core Graphics) CGSSetSymbolicHotKeyEnabled If I do this from Xcode with Obj-C, it gives me a compiler warning "Implicit declaration of..." The warning can be fixed with "extern" but the code runs fine either way. However, when I try from irb: require "osx/cocoa" OSX::CGSSetSymbolicHotKeyEnabled(64, false) NoMethodError: undefined method `CGSSetSymbolicHotKeyEnabled' for OSX:Module from /Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:23:in `method_missing' from (irb):12 How do I get RubyCocoa to call the function? Thanks! Sean DeNigris |