Hi Lennox.

Yes, there is an easier way.
You can use WindowCount to tell you at any time how many windows are open,
and refer to them as an array (0 based), such as Window(i).Title

You could design a method in the App object to manage your windows, closing old ones as you open new ones.

Be careful on the MS Windows platform, though.
If you close the last (only) window before opening the next, the whole app quits. So you need to get the sequence right.

Russ

On May 27, 2006, at 10:09 PM, Lennox Jacob wrote:

Hello,

Mac OSX 10.4

I would like my app to have only one window open at any time, e.g. :-
if one window is already open, double-clicking on another file of that app will not open a new window for that file, or
clicking new in the File menu do not open a new window.

Do I have to use a mutex to do that or is there a simpler way?

Thanks.

Lennox.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to