I have an NSMutable dictionary that contains file IDs and their filename+extension in the simple form of fileone.doc or filetwo.pdf. I need to determine what type of file it
//NSURL *url = [NSURL URLWithString: fileType]; NSLog(@"extension: %@", [fileType pathExtension]);
Edit you can use pathExtension on NSString
Thanks to David Barry