>>>>> "Mael" == Mael Hilléreau <[EMAIL PROTECTED]> writes:
Mael> Le 27 mai 07 à 00:55, Mael Hilléreau a écrit : >> According to Apple's "Bundle Programming Guide", >> >> The Finder identifies packages by any of the following mechanisms: >> * The directory has a known extension: .app, .bundle, .framework, >> .plugin, .kext, and so on. * The directory has its bundle bit set. >> * The directory has a known structure type indicating it is a >> modern or versioned bundle. >> >> As a conclusion, as it is really not easy to distinguish between >> folders, applications, ..., and packages corresponding to graphics >> (such as '.graffle' files), I would suggest to replace the function >> call by a different one, and to consider folders having an >> extension to be valid files (only for Mac OS of course...). In the >> case the chosen package isn't supported (i.e. it is a folder or >> anything else but supported graphics), LyX won't crash because the >> file format won't be recognized. I think it would be better to real OSX code to determine whether a directory is a bundle (maybe CFBundleCreate?). Otherwise, there would be the solution to always accept a directory as a file (and use a isReadable instead of isFileReadable), but then CRC should be computed by iterating on the files inside the directory. Could you open a bug about this problem? JMarc