10.8 and disk images and alias file resolution
10.8 and disk images and alias file resolution
- Subject: 10.8 and disk images and alias file resolution
- From: Brian Clark <email@hidden>
- Date: Tue, 08 Jan 2013 11:16:46 -0600
A client has reported a problem with one of my applications after switching
from 10.6.8 to 10.8. I can't run 10.8 myself, but sending the client test
versions of the app that logged the drag data, etc. showed what was
happening.
The Carbon application allows files to be dragged into one of its windows.
Originally, the drag data was processed using GetFlavorData() with a
FlavorType of flavorTypeHFS, but using the newer pasteboard functions to
get a CFURLRef give the same results.
The source of the dragged files is a disk image volume. Tests were done
using both encrypted sparse image volumes and non-encrypted fixed size disk
image volumes.
Under 10.6.8 all is well. If the user drags a file to the application, the
application gets a valid file spec, and the drag succeeds. Now the user
uses the Finder to create an alias to the same file in the same folder. If
the user drags this alias to the application, the application gets a valid
file spec for the alias file, resolves the alias to the proper original
file via FSResolveAliasFile(), and again the drag succeeds.
Under 10.8 all is NOT well. Dragging the original file works fine. Creating
an alias file, then dragging it to the application, results in the
application getting a valid file spec to the alias file. But calling
FSResolveAliasFile() on the alias file does NOT give the FSRef for the
original file. Instead the disk image file ("Disk Name.sparseimage" or the
equivalent) is returned.
So, a 10.8 Finder alias file to a file on a disk image volume, when the
alias itself is created on that disk image volume, does not resolve
correctly using FSResolveAliasFile().
Is this a known issue? Are there any work-arounds?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden