In my XCode project, I added a Sounds folder to my Resources folder. Into the Sounds folder, I dropped a couple of MP3 files with fairly long names (25-30 chars). I like to be descriptive. However, the following code chokes with an UNCAUGHT EXCEPTION:
fileURL = [[NSURL alloc] initFileURLWithPath:[mainBundle pathForResource:@"really_really_long_name_for_real" ofType:@"mp3"]];
If I change the name of the resource to "blah.mp3" and the corresponding code line to:
fileURL = [[NSURL alloc] initFileURLWithPath:[mainBundle pathForResource:@"blah" ofType:@"mp3"]];
everything works fine.
Is there a max length for a name of a resource?