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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -