I'm trying to add a pdf file to my app and and open it when a button is clicked however for some reason i keep on getting an error that file cant be found.
thats what I'm using
when i open the contents of the app manually i can find the .pdf file in the resources folder but why cant the app find it
thats what I'm using
Code:
[[NSWorkspace sharedWorkspace] openURL:[NSURL fileURLWithPath:@"appname.app/Contents/Resources/samplepdf.pdf"]];
when i open the contents of the app manually i can find the .pdf file in the resources folder but why cant the app find it