Hi,

As you said, Mac users expect to have the document opened by default,
that is how mac apps behave. What Linux or Windows do in this case is
irrelevant.

And when we close a document, the only 'no-document-open' mode for mac
should be the one with only the Apple provided menu bar visible, not
the "gray background" -thing that is OOo legacy stuff.

Let's try to keep in mind that this is a real application (suite) for
ordinary MAC users, not (just) a developers favorite playing tool.

       Mox

On 5/16/07, Pavel Janík <[EMAIL PROTECTED]> wrote:
Hi,

so far, I always started aqua OOo from the gdb. I tried to run it
from the Finder and it works ;-) There is a small difference though.
When running OOo from the Finder, the new empty Writer document is
opened.

It is because Finder automatically adds process serial number
argument to soffice.bin:

pavel    12540   0.0 -3.1   694076  65252  ??  S    10:47AM
0:03.63 /Users/pavel/Applications/AQUA/OpenOffice.org 2.3.app/
Contents/MacOS/soffice.bin -psn_0_95813633

We do not need to save this number, because we can always get it e.g.
via

     ProcessSerialNumber PSN;
     GetCurrentProcess(&PSN);
     fprintf(stderr, "highLongOfPSN is %ld\n", PSN.highLongOfPSN);
     fprintf(stderr, "lowLongOfPSN is %ld\n", PSN.lowLongOfPSN);

which results in

highLongOfPSN is 0
lowLongOfPSN is 95813633

So this argument is useless and we can safely ignore it.

Do we want it to behave this way and "mis-use" the PSN added by the
Finder for this purpose?

I can imagine that Mac users expect to see the new document opened on
start, but for me it is a bit weird, because this is the only
platform where empty document is opened.
--
Pavel Janík


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Mox on G

Reply via email to