• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Network volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Network volume


  • Subject: Re: Network volume
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 23 Dec 2008 17:29:01 -0800


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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Network volume
      • From: Ken Thomases <email@hidden>
References: 
 >Network volume (From: norio <email@hidden>)
 >Re: Network volume (From: "Kyle Sluder" <email@hidden>)
 >Re: Network volume (From: Nor <email@hidden>)

  • Prev by Date: Crash as NSPersistentDocument creates its persistence stack
  • Next by Date: FastCGI and cocoa
  • Previous by thread: Re: Network volume
  • Next by thread: Re: Network volume
  • Index(es):
    • Date
    • Thread