On Nov 2, 2005, at 8:11 AM, John C. Daub wrote:
>
> Hello.
>
> When burning a data CD/DVD of files, what determines their icon
> placement?
> We've noticed on some of our burned discs that, when viewing the
> burned disc
> in the Finder's icon view, sometimes the icons will all be laid out
> in a
> nice grid but other times multiple icons might be stacked on top of
> each
> other. We'd like to avoid that stacking, having some sort of nice
> ordered
> layout.
>
> I see in DRContentProperites a kDRMacIconLocation... but does that
> mean I
> have to set this for every item to be burned? And just how would I
> properly
> calculate that anyway?
>
> I'm wondering what in the burn process determines how the files/
> folders will
> be laid out, and if there's any way we can manipulate it. Or if
> it's not
> something from the burn process and might just be some quirk of the
> Finder?
The framework does nothing to manipulate the icon layout when burning.
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.
If you want to make sure that the files are looking pretty, you can
either:
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.
I'm assuming here that this is a problem for the top-level of your
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)).
-Mike
----
Mike Shields
CD/DVD Burning Issues
Apple Computer, Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Discrecording mailing list (
Discrecording@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/discrecording/subscriber%40opensubscriber.com
This email sent to
subscriber@open...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.