Hi Ale,
The short answer is yes! Have a look at a bundle I wrote for Snipplr.
http://www.elaptics.co.uk/fileadmin/repository/tmbundles/Snipplr2.zip
I populate the list of languages supported by Snipplr in the Post Snippet nib. Give me a shout off list if any of it doesn't make sense. I'll be interested to know if there is a better way of doing it as it seems a little bit more convoluted than it feels like it should be.
Andy
On 2 Apr 2007, at 20:28, Ale Muñoz wrote:
Hi there,
is there any way of populating a dropdown with a Hash/Array from Ruby, using tm_dialog?
I'm using a custom Nib, but I don't have too much experience with Interface Builder.
Dummy code:
categories = ["bar","baz"] dialog = ENV['DIALOG'] plist = { 'title' => "Add your title", 'category' => categories # How do I use this here? }.to_plist str = `#{e_sh dialog} "#{NIBS}/new_message.nib/" -m -p #{e_sh plist}`
Any hints will help :)