[fxruby-users] need to call getApp

Lyle Johnson lyle.johnson at gmail.com
Tue Mar 27 19:27:30 EDT 2007

On 3/27/07, Raj Sahae <rajsahae at gmail.com> wrote:

> Assuming I'm not passing the app into the method, and the file has no outside
> information on what app might be using it, how do I getApp()?

The FXApp.instance() class method should do the trick:

    @icon = FXJPGIcon.new(FXApp.instance, ...)

Note that you need to have actually constructed the FXApp prior to
calling FXApp.instance; otherwise, it will return nil.

Hope this helps,


More information about the fxruby-users mailing list