>> When burning a data CD/DVD of files, what determines their icon
> The framework does nothing to manipulate the icon layout when burning.
I didn't think so. I saw nothing to that effect (other than the
> What is going on (most likely) is that some of your files already
> have icon location associated with them. Disc Recording will copy
> these icon locations from the existing files, so if they have a
> location, it will be placed there, otherwise the Finder will see
> there's no location set and automatically place the file somewhere in
> the window according to it's own algorithm.
Ok, that's what I was guessing was the reason for it.
> If you want to make sure that the files are looking pretty, you can
> 1) modify the original files to position them nicely in the window
> (you'll need to play with this of course to get something that looks
> great on disc)
> 2) explicitly position the icons using the kDRMacIconLocation.
> 3) explicitly _don't_ position the files by setting the folder
> location to (0,0) which tells the Finder that the file isn't
> explicitly positioned.
Can't do 1, but doing 3 via 2 seems like my best bet. I did wonder if there
was a way to "clear" the position so that the Finder/OS would just pick the
best position... and if 0,0's the way to go, great! :-)
> I'm assuming here that this is a problem for the top-level of your
Yes. The app I'm working on searches for files/folders on disk. You get the
results in a flat table, then you can select items and burn them to disc. So
this is really only a top-level problem.
However, since folders can be burned well... if the contents in there is of
a particular layout, at least it'll match the way it was on their machine.
> disc, so it's fairly easy to do #3 by simple enumerating the children
> of the root folder, setting the kDRMacIconLocation to the same Point
> data value for each file (that being (0,0)).
I will give this a try.
Thank you much for your informative and helpful reply.
John C. Daub }:-)>=
<mailto:hsoi@hsoi...> <http://www.hsoi.com/> "Course some people without brains do an awful lot of talking, don't they?"
- The Scarecrow in "The Wizard of Oz"