[hfs-user] Re: Desktop View

Entwicklung entwicklung@whengenibk.de
Fri, 26 Apr 2002 15:08:20 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0040_01C1ED34.33985C70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

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 :

struct DInfo {
      Rect              frRect;        /*folder's window rectangle*/
      unsigned short    frFlags;       /*flags*/
      Point             frLocation;    /*folder's location in window*/
      short             frView;        /*folder's view*/
};

struct DXInfo {
      Point          frScroll;         /*scroll position*/
      long           frOpenChain;      /*directory ID chain of open =
folders*/
      char           frScript;         /*script flag and code*/
      char           frXFlags;         /*reserved*/
      short          frComment;        /*comment ID*/
      long           frPutAway;        /*directory ID*/
};


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 =
displaying the contents of the CD.
Now Rect defines the size and location of a QuickDraw rectangle.

struct Rect {
    short    top;
    short    left;
    short    bottom;
    short    right;
};=20
  top=20
  The vertical coordinate of the upper-left point of the rectangle.=20
  left=20
  The horizontal coordinate of the upper-left point of the rectangle.=20
  bottom=20
  The vertical coordinate of the lower-right point of the rectangle.=20
  right=20
  The horizontal coordinate of the lower-right point of the rectangle.=20
I set top to 5, left to 5 bottom to 200 and right to 200...... but the =
default rectangle (a smaller sized one)
still continues to appear. What am I doing wrong out here ?.. sth wrong =
with the values ?=20

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.

Any tips would help a lot !

Regards,
Nandini

  ----- Original Message -----=20
  From: Entwicklung=20
  To: studentdev@lists.apple.com ; hfs-user@lists.mars.org ; =
darwin-development@lists.apple.com=20
  Cc: Thomas Tempelmann=20
  Sent: Thursday, April 25, 2002 8:06 AM
  Subject: Desktop View


  Hello,
       I need some help.
  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=20
  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 there some way =
in which I can get this to be stored on my CD as well ? Is this part of =
the desktop database too ?
  =20
  The situation is as follows - when I insert my HFS-CD into my drive =
and click on the CD-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 properly ? ..ie. say '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.

  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 can be overcome somehow without having a desktop database on my =
CD.

  TIA,
  Nandini



  ********** It's not easy to find happiness in ourselves and it's not =
possible to find it elsewhere ************

------=_NextPart_000_0040_01C1ED34.33985C70
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>As Patrick had suggested - from the =
Apple technical=20
notes I gathered that the structures I need to set the window settings =
of=20
folders have the required form :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>struct DInfo =
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Rect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
frRect;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*folder's window=20
rectangle*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned =
short&nbsp;&nbsp;&nbsp;=20
frFlags;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
/*flags*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Point&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
frLocation;&nbsp;&nbsp;&nbsp; /*folder's location in=20
window*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
short&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;=20
frView;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*folder's=20
view*/<BR>};<BR><BR>struct DXInfo {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Point&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
frScroll;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*scroll=20
position*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
frOpenChain;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*directory ID chain of open=20
folders*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
frScript;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*script flag =
and=20
code*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
frXFlags;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
/*reserved*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
short&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
frComment;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*comment=20
ID*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
frPutAway;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /*directory=20
ID*/<BR>};<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>I want to set say my root folder's =
window size to a=20
pretty large value so that as soon as I click on my CD-symbol a large =
window=20
opens up&nbsp;displaying the contents of the CD.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Now Rect defines the size and location =
of a=20
QuickDraw rectangle.<BR><BR><FONT=20
size=3D3><CODE>struct&nbsp;Rect&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;short&n=
bsp;&nbsp;&nbsp;&nbsp;top;<BR>&nbsp;&nbsp;&nbsp;&nbsp;short&nbsp;&nbsp;&n=
bsp;&nbsp;left;<BR>&nbsp;&nbsp;&nbsp;&nbsp;short&nbsp;&nbsp;&nbsp;&nbsp;b=
ottom;<BR>&nbsp;&nbsp;&nbsp;&nbsp;short&nbsp;&nbsp;&nbsp;&nbsp;right;<BR>=
};</CODE>=20
</FONT>
<DL>
  <DT><TT>top</TT>=20
  <DD>The vertical coordinate of the upper-left point of the rectangle.=20
  <DT><TT>left</TT>=20
  <DD>The horizontal coordinate of the upper-left point of the =
rectangle.=20
  <DT><TT>bottom</TT>=20
  <DD>The vertical coordinate of the lower-right point of the rectangle. =

  <DT><TT>right</TT>=20
  <DD>The horizontal coordinate of the lower-right point of the =
rectangle.=20
</DD></DL></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I set top to 5, left to 5 bottom to 200 =
and right=20
to 200...... but the default rectangle (a smaller sized =
one)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>still continues to appear. What am I =
doing wrong=20
out here ?.. sth wrong with the values ? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The rest of my finder flags are all set =
to 0 so the=20
finder uses its default values. I'm only setting the creator and =
filetype of the=20
files in addition to this.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any tips would help a lot =
!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Nandini</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:Entwicklung@WHengenIBK.de"=20
  title=3DEntwicklung@WHengenIBK.de>Entwicklung</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:studentdev@lists.apple.com"=20
  title=3Dstudentdev@lists.apple.com>studentdev@lists.apple.com</A> ; <A =

  href=3D"mailto:hfs-user@lists.mars.org"=20
  title=3Dhfs-user@lists.mars.org>hfs-user@lists.mars.org</A> ; <A=20
  href=3D"mailto:darwin-development@lists.apple.com"=20
  =
title=3Ddarwin-development@lists.apple.com>darwin-development@lists.apple=
.com</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A =
href=3D"mailto:joliet@tempel.org"=20
  title=3Djoliet@tempel.org>Thomas Tempelmann</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, April 25, 2002 =
8:06=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Desktop View</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; I need some=20
  help.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>I'd like to know what part of the HFS =
format is=20
  responsible for how icons on an external CD-volume appear on the =
desktop of=20
  Mac OS 9. The desktop database holds the icon info but where is info. =
like=20
  </FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Window-sizing on the Mac, no. of =
icons per row,=20
  spacing of icons etc. stored ? Is this stored on the hard-disk of the =
Mac or=20
  is&nbsp;there some way in which I can get this to be stored on my CD =
as well ?=20
  Is this part of the desktop database too ?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>The situation is as follows - when I =
insert my=20
  HFS-CD into my drive and click on the&nbsp;CD-symbol a window opens up =

  displaying the icons for all the files present on the CD but they are =
not=20
  spaced properly and the view doesn't look all that good - Is there =
some way in=20
  which I can display these</FONT>&nbsp;<FONT face=3DArial =
size=3D2>properly ? ..ie.=20
  say&nbsp;'n' icons in one row etc ? Sometimes there are around 30 =
icons=20
  displayed for around 100 files on my CD... then a lot of empty space =
is=20
  displayed - which could mislead the user to think that no more files =
are=20
  present - and then the remaining 70 file-icons suddenly show =
up.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I presume this doesn't have to be =
stored on the=20
  external HFS-volume but rather has something to do with my Mac-OS =
settings...=20
  but I'm not too 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 =
moment but=20
  this looks really bad and I'd like to change it if I can i.e. if =
this&nbsp;can=20
  be overcome somehow without&nbsp;having a desktop database on my=20
  CD.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>TIA,</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Nandini</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>********** It's not easy to find =
happiness in=20
  ourselves and it's not possible to find it elsewhere=20
************</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0040_01C1ED34.33985C70--