[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Toolbox] Apple events and PSN ... bug?



Note that Matthias' suggestion of pack 'll', 0, $psn worked, though a
modification of that is used in what I posted today to the macperl list.

At 17.48 -0400 1999.04.28, John W Baxter wrote:
>Aside from that, a PSN is really a number plus a bunch of flags, which may
>vary from moment to moment.  The number is (as of now, and "I think") in
>the low longword (or perhaps the low part of the low longword).

Hm ... if you can send a PSN, then the AE manager should at least be able
to use the PSN you pass even if it has changed.  One can only hope.  :)

>Nonetheless, I don't recall having had to do anything special in C code to
>stuff a PSN into an Apple event.  Perhaps I was only working with some of
>the special ones (eg kCurrentProcess, which is always given (by us) a high
>longword of 0), not ones I got out of GetNextProcess().  But if PSNs don't
>"go in" with the bits identical to how they "came out" I would expect
>problems.   (Apple provided the SameProcess() thing for comparing PSNs for
>this reason.)

Right.  I wonder if the AE manager uses the same logic that SameProcess
uses to determine what process you are targeting if the PSN has changed?

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org