objective c NSURL may not respond to +initFileURLWithPath
- by caballo7
I have two lines of code in the applicationDidFinishLaunching function:
NSString *targetFilePath = @"/Users/bob/Documents/About_Stacks.pdf";
NSURL *targetFileURL = [NSURL initFileURLWithPath:targetFilePath];
and I am getting the warning (title) in the second line...
I have no idea what I am doing wrong. This is an absurdly simply application... I have read other posts about reordering methods, but I am using classes provided by NS, nothing of my own.
Any advice would be much appreciated.
Thanks.