I’m using -(void)application:(NSApplication *)sender openFiles:(NSArray *)filenames to preform an action when a file with .myfiletype at the end of the file name.
I am also using NSString *fileThing = [NSString stringWithContentsOfFile:@"/Users/baileyseymour/Desktop/myfile.myfiletype"
encoding:NSUTF8StringEncoding error:nil];
to get the contents of a file but with a absolute path.
How can I make it so that I can get the path to the file being opened instead of the absolute path?
Are you looking for each filename in the filenames array? Like this: