[TxMt] tm_dialog: Populating a dropdown.

Ale Muñoz bomberstudios at gmail.com
Mon Apr 2 19:28:29 UTC 2007


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 :)

Also... is there any way of calling tm_dialog to load a custom Nib
using the Ruby wrapper in dialog.rb?

Thanks in advance!


--
Ale Muñoz
http://sofanaranja.com
http://bomberstudios.com


More information about the textmate mailing list