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; }; 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 default rectangle (a smaller sized one) still continues to appear. What am I doing wrong out here ?.. sth wrong with the values ?
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 ----- From: Entwicklung To: studentdev@lists.apple.com ; hfs-user@lists.mars.org ; darwin-development@lists.apple.com Cc: Thomas Tempelmann 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 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 ?
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 ************
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:
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; };
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 default rectangle (a smaller sized one) still continues to appear. What am I doing wrong out here ?.. sth wrong with the values ? 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 ----- From: Entwicklung To: studentdev@lists.apple.com ; hfs-user@lists.mars.org ; darwin-development@lists.apple.com Cc: Thomas Tempelmann 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 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 ? 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 ************
Hi Patrick, Thanks for replying ! I'm setting the field Finder flags to 0x0100 (kHasBeenInited) as you had mentioned in your first email .i.e. I'm setting the userInfo.frFlags field for my root folder to this value (I haven't set the Bundle bit). I'm setting finderInfo.frXFlags to 0 - I think these are some extended flags so this shouldn't matter anyway (?) I wanted the first window (corresponding to the root folder) which opens up to be larger in size say - top - 5 left - 5 bottom - 200 right - 200
Am I setting sth incorrectly?
Regards, Nandini
----- Original Message ----- From: "Patrick Dirks" pwd@apple.com To: "Entwicklung" entwicklung@whengenibk.de Cc: darwin-development@lists.apple.com; studentdev@lists.apple.com; hfs-user@lists.mars.org Sent: Friday, April 26, 2002 5:46 PM Subject: Re: [hfs-user] Re: Desktop View
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:
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; };
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 default rectangle (a smaller sized one) still continues to appear. What am I doing wrong out here ?.. sth wrong with the values ?
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 ----- From: Entwicklung To: studentdev@lists.apple.com ; hfs-user@lists.mars.org ; darwin-development@lists.apple.com Cc: Thomas Tempelmann 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 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 ?
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 ************
studentdev mailing list | studentdev@lists.apple.com Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.