[MacRuby-devel] allowedFileTypes and NSOpenPanel

2010-11-13 Thread Gregoire LEJEUNE
Hi, I try to use setAllowedFileTypes with an NSOpenPanel using this code : panel = NSOpenPanel.openPanel() panel.canChooseFiles = true panel.allowedFileTypes = ["graphml", "gml", "xml"] result = panel.runModal() But it doesn't work. I can chose any type of file. If I use the (10.6) deprecated r

[MacRuby-devel] Exception backtraces in instance_eval

2010-11-13 Thread Martijn Walraven
Hi, I'm trying to use RSpec (latest version, 2.1.0) with MacRuby, but there seems to be information missing from the exception backtraces which makes it difficult to see where exactly specs fail. Running a straightforward helloworld_spec.rb with a failing example for instance, shows a referenc

[MacRuby-devel] Neat MacRuby app, HotCocoa, and more!

2010-11-13 Thread Leigh Caplan
Hey everybody, I wanted to say hi to the list and introduce myself - I've been lurking for awhile and come by when I need help, but RubyConf has me all fired up, so I'd like to start engaging more with the community. My name is Leigh Caplan, and I'm a developer in Seattle, WA. I like long walks on

Re: [MacRuby-devel] allowedFileTypes and NSOpenPanel

2010-11-13 Thread Matt Aimonetti
Here is an extract from one of my apps: def browse(sender) # Create the File Open Dialog class. dialog = NSOpenPanel.openPanel # Disable the selection of files in the dialog. dialog.canChooseFiles = false # Enable the selection of directories in the dialog. dialog.canChoo