Hi Frédéric,
> I'd like to launch an external app from my main project made with RB. This
> external app is a preferences module that will also be made with RB.
> So I want to be able to launch the prefs modules from my main app, display
> it in front of my general interface, and make my main app wait for the user
> to close the prefs module. Moreover, I don't want the user to bring the main
> interface to the front, over the prefs module (in other words, I want the
> prefs GUI behave like a modal window).
>
If you _have_ to do it that way then you could look at using declares to
various libraries.
If you are doing a mac only solution then a simpler approach again might be
to look at whats possible using applescript from within your rb apps.
A slightly better approach (if its possible for your situation) might be to
allow the two applications to run separately, without halting things in your
main app, but insist then the user push a particular button (maybe labelled
'restart') in the main application after changing the preferences.
I hope that helps.
Yours cheerfully,
Andrew Bush
----------------------------------------------------------------------------
A human being should be able to change a diaper, plan an invasion, butcher a
hog, conn a ship, design a building, write a sonnet, balance accounts, build
a wall, set a bone, comfort the dying, take orders, give orders, cooperate,
act alone, solve equations, analyze a new problem, pitch manure, program a
computer, cook a tasty meal, fight efficiently, die gallantly.
Specialization is for insects.
|