Hi

   Sorry, missed this response, it looks closer, I have to poke around for a
bit, I am getting a missing method exception on Action.new.

Thanks,
Patrick

On Tue, Nov 24, 2009 at 2:11 PM, Ivan Porto Carrero <i...@flanders.co.nz>wrote:

> sorry
>
>  def initialize
>   meth = proc { |st| update_status(st) }
>   self.dispatcher.invoke(System::Action.new(&meth), %w(jo))
> end
>
>
> http://github.com/casualjim/ironnails/blob/master/IronNails/vendor/iron_nails/lib/view/xaml_proxy.rb#L10
>
> ---
> Met vriendelijke groeten - Best regards - Salutations
> Ivan Porto Carrero
> Blog: http://flanders.co.nz
> Google Wave: portocarrero.i...@googlewave.com
> Twitter: http://twitter.com/casualjim
> Author of IronRuby in Action (http://manning.com/carrero)
>
>
>
>  On Tue, Nov 24, 2009 at 7:44 PM, Patrick Brown 
> <patrickcbr...@gmail.com>wrote:
>
>>   Hello
>>
>>    Is it possible to call the Control.Dispatcher.Invoke in IronRuby?  I
>> have been digging around and trying various approaches for quite a while and
>> can't quite seem to get it to work.  The most simple example I below where I
>> do not even access the parameter fails... any ideas would be greatly
>> appreciated.
>>
>>  class MainWindow < Window
>>   def updateStatus(status)
>>     puts 'hi'
>>   end
>>
>>   def initialize
>>     self.Dispatcher.Invoke(updateStatus, ["jo"])
>>  end
>> end
>>
>> Thanks for your time and ideas,
>> Patrick
>>
>> _______________________________________________
>> Ironruby-core mailing list
>> Ironruby-core@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>
>>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to