NSFileManager: no way to check a file meets a set of file types??
NSFileManager: no way to check a file meets a set of file types??
- Subject: NSFileManager: no way to check a file meets a set of file types??
- From: Stephane Sudre <email@hidden>
- Date: Thu, 28 Jun 2007 22:56:56 +0200
When you need to filter out some file types in a NSOpenPanel, you can
use the various fileTypes message of NSImage, QTMovie
ex:
tResult = [oPanel runModalForDirectory:nil file:nil types:[NSImage
imageFileTypes]];
So it seems strange to me that there is not a message in
NSFileManager to check that a file at a filePath matches one of the
fileTypes.
ex:
- (BOOL) fileMatchesTypes:(NSArray *) fileTypes;
Am I missing something or is it a job for Bug Reporter (Enhancement
Request)?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden