objective c - NSSavePanel setDocumentURL in app's document folder -
objective c - NSSavePanel setDocumentURL in app's document folder -
i'm trying set directory url in nssavepanel opens panel directory doesn't work when set path in app's document folder.
nssavepanel *panel = [nssavepanel savepanel]; nsstring *filefolder = @"/users/me/library/containers/com.company.app/data/documents/myfolder"; nsurl *folderurl = [nsurl urlwithstring:folder]; [panel setdirectoryurl:folderurl];
if programmatically open path using finder works don't understand why path wouldn't work through nssavepanel.
[[nsworkspace sharedworkspace] @"/users/me/library/containers/com.company.app/data/documents/myfolder" withapplication:@"finder"];
objective-c cocoa nssavepanel
Comments
Post a Comment