xcode - Objective-C pathForResource doesn't find file, returns null -


the code i'm using below doesn't seem find file want, can help?

nsstring *path = [[nsbundle mainbundle] pathforresource:@"itunes music library" oftype:@".xml" indirectory:@"~/music/itunes/"]; nslog(@"%@", path); 

thanks, sami.

this looking inside bundle, /applications/my app.app/contents/resources/~/music/itunes (if "~" there legal). you're not looking bundle resource here. why making call find path of file know path to?


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -