On Tue, May 29, 2007 at 12:17:04PM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "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?).

QFileInfo::isBundle().

Unfortunately only since 4.3, i.e. today or so ;-}

Andre'

Reply via email to