I've added a several .png files as resources to my project. How can I get an array of their names without having to hardcode them?
views:
94answers:
2
+1
A:
You could try this, it works in a Mac OS X application.
NSArray *files = [[NSBundle mainBundle] pathsForResourcesOfType:@"png" inDirectory:nil]
dreamlax
2009-02-24 23:11:19
A:
Chris Lundie
2009-02-24 23:18:23