Hello,

I have a problem with 10.6 in identifying the mounted network volume.

My system has a local volume - 'Leopard'. When I mount a volume 'Leopard' from some other system in my network, the path it shows is '/ Leopard'. (There is no '/Volumes' at the beginning!)

Here in my application I am using the NSWorkspace notification - NSWorkspaceDidMountNotification and accessing the mounted volume path as :

NSString *devicePath = [ [inNotification userInfo] objectForKey:@"NSDevicePath"];

I am appending '/Volumes' at the beginning so that my application considers it as a volume. (As to match my present code implementation). And then, as both the volumes have the same name, I am getting problems in differentiating these 2 volumes.

If I check the mounted volume path in terminal, it shows the path as - '/Volumes/Leopard-1'.

In 10.5 , if I mount a volume 'Leopard' from other system in my network, the NSWorkspaceDidMountNotification gives the path as '/ Volumes/Leopard-1' since I already have a local volume 'Leopard'.

Why is this behavior change in 10.6 ?

Can anybody help me ?

Thanks,
Shashank Lagvankar


-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an 
intended recipient, please notify the sender and delete all copies. Emails to 
and from our network may be logged and monitored. This email and its 
attachments are scanned for virus by our scanners and are believed to be safe. 
However, no warranty is given that this email is free of malicious content or 
virus.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to