Hi ecin, This appears to be working. framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/DictionaryServices.framework' word = 'History' word_len = DCSGetTermRangeInString(nil, word, 0); res = DCSCopyTextDefinition(nil, word, word_len) puts "Definition for: #{word}" puts res hth, Craig On May 23, 2010, at 10:02 AM, ecin wrote:
I'd like to use Dictionary Services (http://developer.apple.com/mac/library/documentation/UserExperience/Referenc...) to look up definitions in a MacRuby app, but am having a hard time figuring out exactly what I need to require in order to access its functions, as
framework 'Cocoa' framework 'CoreServices'
doesn't do the trick. Is this another example of missing bridge support, or am I missing something else? _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel