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
Try this, it works for me.
NSString *fileName = @"yourFileName.pdf"; NSString *ext = [fileName pathExtension];
Documentation here for NSString pathExtension