How would I take a file in the application’s directory (the same folder the .app is in), and get it’s absolute path. Say the relative path is “Data/file.txt,” how would I use Objective C to get that as an absolute path? I have the user enter their home folder name, if that is any help.
Please help,
HiGuy
Find the location of the running app by doing :
Which will return something like :
Then use
- (NSString *)stringByDeletingLastPathComponentto chop off the last bit.