Accessing SMB shares
Accessing SMB shares
- Subject: Accessing SMB shares
- From: Bertrand Landry-Hetu <email@hidden>
- Date: Wed, 17 Oct 2001 22:27:37 -0400
Hi all!
I'm trying to rewrite a client/server tool my employer uses internally that
comes from the Windows platform. Unfortunately, whoever wrote it a few years
ago had the idea using the Window Networking file system to communicate
between the client and the server (sigh).
Anyway, I wrote the application in cocoa and it works great! Except that I
was hoping to tap in the 10.1 feature that connects to SMB shares since the
application depends on hard coded paths on the network.
All of my ideas have failed so far. I tried creating a NSURL that points to
the file I want to open and open it. The NSData I got from there was nil. So
I manually mounted the drive and created a file URL that points to the file.
Again it returned nil. I even tried save an alias to the file and while it
did mount the shared disk it did not find the file again.
So my question is, has anyone been able to access data from a SMB share from
a Cocoa app? And how exactly did you do it?!
Thanks!
Bert!