There's nothing about File masks there. If there is, I missed it. Anyway, Linux users often have Windows/DOS-style file extensions only for Windows compatibility. Otherwise we use the 'file' command which works by magic numbers.
Mac used to be a special header in the filesystem, but that probably has changed. I would think it would also be automatic detection though, if possible. On Mon, Jun 29, 2009 at 4:45 PM, Seth Thomas Rasmussen<[email protected]> wrote: > On Mon, Jun 29, 2009 at 6:24 PM, Devyn Cairns<[email protected]> wrote: >> I don't think so. >> Partly because Mac and Linux don't regularly use file extensions, so >> their dialogs don't normally have the option. > > I'm not sure what you mean by that. Mac OS uses conventions similar to > what I remember of Windows, where file extensions are linked to > certain default applications and such. Mac OS definitely supports the > ability to mask which files can be selected from an open dialog, but I > think it only does this by making invalid choices inactive instead of > removing them from the presented list. > > http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSOpenPanel_Class/Reference/Reference.html > > I dunno about Linux, though. > > If one didn't want to try to hack this, one might try to just validate > selected files while allowing the user to select anything. > -- ~devyn
