On 2008 Dec, 23, at 14:02, Nor wrote:

But I don't know which volumes were networks'.

Well, I'd imagine you'd have the same problem if the USB cable on a local drive was yanked out. So, you need to identify anything not on the startup volume. I know this is a stupid answer, but actually, I've done this in an application, and it works. Assuming you've got the path of a filesystem item,

   NSArray* comps = [path pathComponents] ;
   if ([[pathComps objectAtIndex:1 isEqualToString:@"Volumes"])
   {
       // It's a network or non-startup drive!!

Or at least, someone who knows a better way might be irked enough to give a Holiday Reply :)

_______________________________________________

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