objective c - Getting Safari-Style File Path -


if open safari's preferences , navigate general, has drop-down menu next label 'save downloaded files to.' how safari-style volume name or whatever? i've done following. (i need file path.) don't same.

- (nsstring *)getvolumepath: (nsstring *)path {     nsarray *urlarray = [path componentsseparatedbystring:@"/"];     nsstring *p = [urlarray objectatindex:2];     return  p; } 

apple, inc. says cannot show full path sandbox-protected folder assigned application. want show safari shows.

thank advice.

following codafi's suggestion, turns out simple following.

- (nsstring *)getlastpath: (nsstring *)path {     return  [path lastpathcomponent]; } 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -