• 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
alternate file extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

alternate file extension


  • Subject: alternate file extension
  • From: "Jacob Eggers" <email@hidden>
  • Date: Mon, 19 Feb 2007 17:39:32 -0500

Okay, so this is a simple question, I want to get an NSArray with all of the
images in a particular directory.

I could do something like this:
[bundle pathsForResourcesOfType: @"jpg" inDirectory: dir];

But, then I'm missing extensions of gif, tiff.. not to mention jpeg, JPG
Jpeg....

Is there an easy way to handle this, or should I just write a custom
NSBundle class with the many appropriate checks?

I know that someone here will have a great answer for me, I'm two for two so
far.

j
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: alternate file extension
      • From: Scott Anguish <email@hidden>
    • Re: alternate file extension
      • From: "Philip Q" <email@hidden>
  • Prev by Date: Re: Custom Shadow on an NSWindow
  • Next by Date: Re: Custom Shadow on an NSWindow
  • Previous by thread: Re: NSScroller shows up, but won't work.
  • Next by thread: Re: alternate file extension
  • Index(es):
    • Date
    • Thread