|
From: Pierre T. <p.t...@bi...> - 2004-06-17 19:03:55
|
Hello, I have installed Ruby Cocoa but when I run: > require 'osx/cocoa' > snd_files =`ls /System/Library/Sounds/*.aiff`.split > snd_files.each do |path| > snd = OSX::NSSound.alloc.initWithContentsOfFile_byReference(path, > true) > snd.play > sleep 0.5 > end I have the following error: > playSound.rb:1:in `require': No such file to load -- osx/cocoa > (LoadError) > from playSound.rb:1 What should I do? Regards. --------------------- Pierre |