Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
cocoa アプリケーションから Windows 共有フォルダーにある PDF ファイルを開こうとしています。
NSWorkSpace の openFile メソッドを使用してファイルを開こうとしており、@"smb:\192.168.2.1\sharedFolderName\my.pdf のようなパスを渡しています。
ただし、ファイルを開くことができません。ファイルを開く前に共有フォルダをマウントする必要がありますか?
共有フォルダの適切な URL は
smb://[[domain;]username[:password]@]server[/share[/path]]
したがって、あなたの例では、
@"smb://192.168.2.1/sharedFolderName/my.pdf"