Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tellFinderSetSelectedIcons question

3 views
Skip to first unread message

Sheppy

unread,
Jul 10, 2011, 3:58:35 PM7/10/11
to
The high bit of dataIn here (which is supposed to let me indicate to
leave currently selected icons selected) doesn't seem to be working
for me. Instead, regardless of what I do, the current selection is
getting cleared. Anyone have any idea why?

Sheppy

antoine

unread,
Jul 10, 2011, 5:52:41 PM7/10/11
to

We read the same books I believe.

- Programmer's reference for System 6.0
page 394, tellFinderGetSelectedIcons
page 402, tellFinderSetSelectedIcons
It states "Do not set bit 31, or any other bits in the highest byte."

But...

- Programmer's reference for System 6.0.1
page 46, tellFinderSetSelectedIcons
It states "You can now set bit 31 of dataIn..."

Then, from my understanding, if bit 31 of dataIn is set, the stringList
handle's contents is no more a set of GS/OS input strings but a set of
records, each preceeded by a count word. Everything is described page
394.

My ideas:
-0- Are you using System 6.0.1?
-1- You still use GS/OS input strings
-2- You do not use GS/OS input strings
-3- There's a bug in System 6.0.1

Antoine

Toinet

unread,
Jul 10, 2011, 6:09:04 PM7/10/11
to
From what I've just read, tellFinderSetSelectedIcons appears to work
with GS/OS input strings only and not with an extended format.

Two questions:
- do you have a fresh install of System 6.0.x and no other weird
extensions (like MountIt)?
- did you try with bit 31 = 0?

antoine

Sheppy

unread,
Jul 11, 2011, 12:56:43 AM7/11/11
to

It's not a fresh install but there aren't any weird extensions
installed.

Regardless of the value of bit 31, the result is the same: the icon I
ask to select is selected, but all others are deselected.

Sheppy

Sheppy

unread,
Jul 11, 2011, 12:55:49 AM7/11/11
to
On Jul 10, 5:52 pm, antoine <i...@brutaldeluxe.fr> wrote:
> On 2011-07-10 21:58:35 +0200, Sheppy said:
>
> > The high bit of dataIn here (which is supposed to let me indicate to
> > leave currently selected icons selected) doesn't seem to be working
> > for me. Instead, regardless of what I do, the current selection is
> > getting cleared. Anyone have any idea why?
>
> > Sheppy
>
> We read the same books I believe.
>
> - Programmer's reference for System 6.0
> page 394, tellFinderGetSelectedIcons
> page 402, tellFinderSetSelectedIcons
>         It states "Do not set bit 31, or any other bits in the highest byte."
>
> But...
>
> - Programmer's reference for System 6.0.1
> page 46, tellFinderSetSelectedIcons
>         It states "You can now set bit 31 of dataIn..."
>
> Then, from my understanding, if bit 31 of dataIn is set, the stringList
> handle's contents is no more a set of GS/OS input strings but a set of
> records, each preceeded by a count word. Everything is described page
> 394.
>
> My ideas:
> -0- Are you using System 6.0.1?

Yes.

> -1- You still use GS/OS input strings

Yes, it's definitely a GS/OS input string. The one icon I'm trying to
add to the selection does get selected correctly, but all others are
getting cleared.

Sheppy

Toinet

unread,
Jul 11, 2011, 1:56:58 PM7/11/11
to
Did you read request.aii, routine tFinderSetSelectedIcons ?
av
0 new messages