• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSFileManager: no way to check a file meets a set of file types??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSFileManager: no way to check a file meets a set of file types??
      • From: Brian Smith <email@hidden>
  • Prev by Date: Re: Binding to NSTreeController
  • Next by Date: Re: NSFileManager: no way to check a file meets a set of file types??
  • Previous by thread: Re: TextViews, LayoutManagers, TextContainers
  • Next by thread: Re: NSFileManager: no way to check a file meets a set of file types??
  • Index(es):
    • Date
    • Thread