When I have NSString with /Users/user/Projects/thefile.ext I want to extract thefile with Objective-C methods.
NSString
/Users/user/Projects/thefile.ext
thefile
What is the eas
At the risk of being years late and off topic - and notwithstanding @Marc's excellent insight, in Swift it looks like:
let basename = NSURL(string: "path/to/file.ext")?.URLByDeletingPathExtension?.lastPathComponent