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

Re: [MacPerl] order of args in @ARGV?



In article <mac-perl.v04011703b2640da85be8@[207.135.77.148]>, Vicki Brown
<vlb@cfcl.com> wrote:

>But MacOS has no command line.  I would have expected files dropped onto a
>MacPerl droplet to go into @ARGV in alphabetical sort order.  But they
>don't... they appear to go into @ARGV in the order in which they were named
>(or, in which their names were changed).  Is this access time?

I believe that all OS versions except OS 8.0 pass dropped items to the
receiving application in the order they were selected. If you do "select
all", then the order may be undetermined, but I thought that if you did
"select all" in a list view then the items were passed in the window's
sort order, but I'm not sure.

I remember when OS 8.0 came out there were comment on usenet about the
behavior changing (I think the items were being sorted despite their
selection order, under OS 8.0). Before this, they were delivered in the
order selected. Despite the collective memory to the contrary, there
seemed to be no documented promise about this ordering. Subsequently, an
Apple engineer posted that the previous (perhaps adventitious) behavior
would be restored, but I never checked whether this actually happened.

Anyway, that's how I remember it. (The bottom line being that the behavior
depends on your OS version.)
-- 
__________________________________________________________________________

Jeff Clites                Online Editor           http://www.MacTech.com/
online@MacTech.com         MacTech Magazine
__________________________________________________________________________

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch