[hfs-user] Re: Desktop View

Patrick Dirks pwd@apple.com
Fri, 26 Apr 2002 08:46:39 -0700


--Apple-Mail-1-726610609
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

If you're zeroing out the other FinderInfo fields I suspect your=20
settings are being ignored by the Finder because the "initited" flag=20
isn't set in the Finder flags.  That's the Finder's que that this=20
information has never been set and should be initialized to some default=20=

values.

-Patrick.

On Friday, April 26, 2002, at 06:08 AM, Entwicklung wrote:

> Hi,
> =A0
> As Patrick had suggested - from the Apple technical notes I gathered=20=

> that the structures I need to set the window settings of folders have=20=

> the required form :
> =A0
> struct DInfo {
> =A0=A0=A0=A0=A0 Rect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
frRect;=A0=A0=A0=A0=A0=A0=A0 /*folder's window rectangle*/
> =A0=A0=A0=A0=A0 unsigned short=A0=A0=A0 frFlags;=A0=A0=A0=A0=A0=A0 =
/*flags*/
> =A0=A0=A0=A0=A0 Point=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
frLocation;=A0=A0=A0 /*folder's location in window*/
> =A0=A0=A0=A0=A0 short=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
frView;=A0=A0=A0=A0=A0=A0=A0 /*folder's view*/
> };
>
> struct DXInfo {
> =A0=A0=A0=A0=A0 Point=A0=A0=A0=A0=A0=A0=A0=A0=A0 frScroll;=A0=A0=A0=A0=A0=
=A0=A0=A0 /*scroll position*/
> =A0=A0=A0=A0=A0 long=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frOpenChain;=A0=A0=A0=
=A0=A0 /*directory ID chain of open=20
> folders*/
> =A0=A0=A0=A0=A0 char=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frScript;=A0=A0=A0=A0=
=A0=A0=A0=A0 /*script flag and code*/
> =A0=A0=A0=A0=A0 char=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frXFlags;=A0=A0=A0=A0=
=A0=A0=A0=A0 /*reserved*/
> =A0=A0=A0=A0=A0 short=A0=A0=A0=A0=A0=A0=A0=A0=A0 frComment;=A0=A0=A0=A0=A0=
=A0=A0 /*comment ID*/
> =A0=A0=A0=A0=A0 long=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frPutAway;=A0=A0=A0=A0=
=A0=A0=A0 /*directory ID*/
> };
> =A0
> I want to set say my root folder's window size to a pretty large value=20=

> so that as soon as I click on my CD-symbol a large window opens=20
> up=A0displaying the contents of the CD.
> Now Rect defines the size and location of a QuickDraw rectangle.
>
> struct=A0Rect=A0{
> =A0=A0=A0=A0short=A0=A0=A0=A0top;
> =A0=A0=A0=A0short=A0=A0=A0=A0left;
> =A0=A0=A0=A0short=A0=A0=A0=A0bottom;
> =A0=A0=A0=A0short=A0=A0=A0=A0right;
> };
>
> top
> The vertical coordinate of the upper-left point of the rectangle.
> left
> The horizontal coordinate of the upper-left point of the rectangle.
> bottom
> The vertical coordinate of the lower-right point of the rectangle.
> right
> The horizontal coordinate of the lower-right point of the rectangle.
>
> I set top to 5, left to 5 bottom to 200 and right to 200...... but the=20=

> default rectangle (a smaller sized one)
> still continues to appear. What am I doing wrong out here ?.. sth =
wrong=20
> with the values ?
> =A0
> The rest of my finder flags are all set to 0 so the finder uses its=20
> default values. I'm only setting the creator and filetype of the files=20=

> in addition to this.
> =A0
> Any tips would help a lot !
> =A0
> Regards,
> Nandini
> =A0
>
> ----- Original Message -----
> From: Entwicklung
> To: studentdev@lists.apple.com ; hfs-user@lists.mars.org ;=20
> darwin-development@lists.apple.com
> Cc: Thomas Tempelmann
> Sent: Thursday, April 25, 2002 8:06 AM
> Subject: Desktop View
>
> Hello,
> =A0=A0=A0=A0 I need some help.
> I'd like to know what part of the HFS format is responsible for how=20
> icons on an external CD-volume appear on the desktop of Mac OS 9. The=20=

> desktop database holds the icon info but where is info. like
> Window-sizing on the Mac, no. of icons per row, spacing of icons etc.=20=

> stored ? Is this stored on the hard-disk of the Mac or is=A0there some=20=

> way in which I can get this to be stored on my CD as well ? Is this=20
> part of the desktop database too ?
> =A0
> The situation is as follows - when I insert my HFS-CD into my drive =
and=20
> click on the=A0CD-symbol a window opens up displaying the icons for =
all=20
> the files present on the CD but they are not spaced properly and the=20=

> view doesn't look all that good - Is there some way in which I can=20
> display these=A0properly ? ..ie. say=A0'n' icons in one row etc ? =
Sometimes=20
> there are around 30 icons displayed for around 100 files on my CD...=20=

> then a lot of empty space is displayed - which could mislead the user=20=

> to think that no more files are present - and then the remaining 70=20
> file-icons suddenly show up.
> =A0
> I presume this doesn't have to be stored on the external HFS-volume =
but=20
> rather has something to do with my Mac-OS settings... but I'm not too=20=

> sure. I'd appreciate it if someone could tell me which part is=20
> responsible for such things ? I'm not creating a desktop DB at the=20
> moment but this looks really bad and I'd like to change it if I can=20
> i.e. if this=A0can be overcome somehow without=A0having a desktop =
database=20
> on my CD.
> =A0
> TIA,
> Nandini
> =A0
> =A0
> =A0
> ********** It's not easy to find happiness in ourselves and it's not=20=

> possible to find it elsewhere ************
>

--Apple-Mail-1-726610609
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1

If you're zeroing out the other FinderInfo fields I suspect your
settings are being ignored by the Finder because the "initited" flag
isn't set in the Finder flags.  That's the Finder's que that this
information has never been set and should be initialized to some
default values.


-Patrick.


On Friday, April 26, 2002, at 06:08 AM, Entwicklung wrote:


=
<excerpt><fontfamily><param>Arial</param><smaller>Hi,</smaller></fontfamil=
y>

=A0

<fontfamily><param>Arial</param><smaller>As Patrick had suggested -
from the Apple technical notes I gathered that the structures I need
to set the window settings of folders have the required form =
:</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>struct DInfo {

=A0=A0=A0=A0=A0 Rect=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
frRect;=A0=A0=A0=A0=A0=A0=A0 /*folder's window rectangle*/

=A0=A0=A0=A0=A0 unsigned short=A0=A0=A0 frFlags;=A0=A0=A0=A0=A0=A0 =
/*flags*/

=A0=A0=A0=A0=A0 Point=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frLocation;=A0=A0=
=A0 /*folder's location in window*/

=A0=A0=A0=A0=A0 short=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frView;=A0=A0=A0=
=A0=A0=A0=A0 /*folder's view*/

};


struct DXInfo {

=A0=A0=A0=A0=A0 Point=A0=A0=A0=A0=A0=A0=A0=A0=A0 frScroll;=A0=A0=A0=A0=A0=A0=
=A0=A0 /*scroll position*/

=A0=A0=A0=A0=A0 long=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frOpenChain;=A0=A0=A0=A0=
=A0 /*directory ID chain of open
folders*/

=A0=A0=A0=A0=A0 char=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frScript;=A0=A0=A0=A0=A0=
=A0=A0=A0 /*script flag and code*/

=A0=A0=A0=A0=A0 char=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frXFlags;=A0=A0=A0=A0=A0=
=A0=A0=A0 /*reserved*/

=A0=A0=A0=A0=A0 short=A0=A0=A0=A0=A0=A0=A0=A0=A0 frComment;=A0=A0=A0=A0=A0=
=A0=A0 /*comment ID*/

=A0=A0=A0=A0=A0 long=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 frPutAway;=A0=A0=A0=A0=A0=
=A0=A0 /*directory ID*/

};

=A0</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>I want to set say my root
folder's window size to a pretty large value so that as soon as I
click on my CD-symbol a large window opens up=A0displaying the contents
of the CD.</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>Now Rect defines the size and
location of a QuickDraw rectangle.


</smaller></fontfamily><fixed><bigger>struct=A0Rect=A0{

=A0=A0=A0=A0short=A0=A0=A0=A0top;

=A0=A0=A0=A0short=A0=A0=A0=A0left;

=A0=A0=A0=A0short=A0=A0=A0=A0bottom;

=A0=A0=A0=A0short=A0=A0=A0=A0right;

};</bigger></fixed><fontfamily><param>Arial</param><smaller>


=
</smaller></fontfamily><fixed>top</fixed><fontfamily><param>Arial</param><=
smaller>

The vertical coordinate of the upper-left point of the rectangle.

=
</smaller></fontfamily><fixed>left</fixed><fontfamily><param>Arial</param>=
<smaller>

The horizontal coordinate of the upper-left point of the rectangle.

=
</smaller></fontfamily><fixed>bottom</fixed><fontfamily><param>Arial</para=
m><smaller>

The vertical coordinate of the lower-right point of the rectangle.

=
</smaller></fontfamily><fixed>right</fixed><fontfamily><param>Arial</param=
><smaller>

The horizontal coordinate of the lower-right point of the rectangle.


I set top to 5, left to 5 bottom to 200 and right to 200...... but the
default rectangle (a smaller sized one)</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>still continues to appear.
What am I doing wrong out here ?.. sth wrong with the values =
?</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>The rest of my finder flags
are all set to 0 so the finder uses its default values. I'm only
setting the creator and filetype of the files in addition to =
this.</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>Any tips would help a lot =
!</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>Regards,</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>Nandini</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>=A0</smaller></fontfamily>


----- Original Message -----

<bold>From:</bold>
=
<underline><color><param>1999,1999,FFFF</param>Entwicklung</color></underl=
ine>

<bold>To:</bold>
=
<underline><color><param>1999,1999,FFFF</param>studentdev@lists.apple.com<=
/color></underline>
; =
<underline><color><param>1999,1999,FFFF</param>hfs-user@lists.mars.org</co=
lor></underline>
; =
<underline><color><param>1999,1999,FFFF</param>darwin-development@lists.ap=
ple.com</color></underline>

<bold>Cc:</bold> <underline><color><param>1999,1999,FFFF</param>Thomas
Tempelmann</color></underline>

<bold>Sent:</bold> Thursday, April 25, 2002 8:06 AM

<bold>Subject:</bold> Desktop View


<fontfamily><param>Arial</param><smaller>Hello,</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>=A0=A0=A0=A0 I need some =
help.</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>I'd like to know what part of
the HFS format is responsible for how icons on an external CD-volume
appear on the desktop of Mac OS 9. The desktop database holds the icon
info but where is info. like</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>Window-sizing on the Mac, no.
of icons per row, spacing of icons etc. stored ? Is this stored on the
hard-disk of the Mac or is=A0there some way in which I can get this to
be stored on my CD as well ? Is this part of the desktop database too =
?</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>The situation is as follows -
when I insert my HFS-CD into my drive and click on the=A0CD-symbol a
window opens up displaying the icons for all the files present on the
CD but they are not spaced properly and the view doesn't look all that
good - Is there some way in which I can display
=
these</smaller></fontfamily>=A0<fontfamily><param>Arial</param><smaller>pr=
operly
? ..ie. say=A0'n' icons in one row etc ? Sometimes there are around 30
icons displayed for around 100 files on my CD... then a lot of empty
space is displayed - which could mislead the user to think that no
more files are present - and then the remaining 70 file-icons suddenly
show up.</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>I presume this doesn't have
to be stored on the external HFS-volume but rather has something to do
with my Mac-OS settings... but I'm not too sure. I'd appreciate it if
someone could tell me which part is responsible for such things ? I'm
not creating a desktop DB at the moment but this looks really bad and
I'd like to change it if I can i.e. if this=A0can be overcome somehow
without=A0having a desktop database on my CD.</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>TIA,</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>Nandini</smaller></fontfamily>

=A0

=A0

=A0

<fontfamily><param>Arial</param><smaller>********** It's not easy to
find happiness in ourselves and it's not possible to find it elsewhere
************</smaller></fontfamily>


</excerpt>=

--Apple-Mail-1-726610609--