• 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
pathnames in Tiger not showing volume name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pathnames in Tiger not showing volume name


  • Subject: pathnames in Tiger not showing volume name
  • From: "Michael Hanna" <email@hidden>
  • Date: Wed, 30 Jan 2008 06:53:58 -0800

Hi there, I've run into a problem with pathnames that have been
dragged-and-dropped on a window. They are exactly like the paths which
you'd expect from -fileSystemRepresentation. In Leopard, the pathnames
from an SMB mount I will get from the Finder are like:

/Volumes/SMB_Mount/Files/AnnualReport_Cover.pdf

but in Tiger I would get something like:

/Volumes/SMB_Server/Files/AnnualReport_Cover.pdf

where I'll get the server name and not the volume name.

I've been hacking these paths to create a UNC path, but on Tiger this
is impossible because I can't get the Volume name.

Perhaps there's a better, more general way to create paths in
Carbon(for instance)? I've tried creating an FSRef, but being very
Carbon ignorant have just been stabbing in the dark with it. For
instance, I tried to make an NSURL from CFURLCreateFromFSRef hoping
that would give me something more general, but that didn't change
anything.

Michael
_______________________________________________

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: pathnames in Tiger not showing volume name
      • From: "Herb Petschauer" <email@hidden>
  • Prev by Date: Re: Documentation for DOMDocument, DOMElement, DOMNode, etc...
  • Next by Date: Re: NSTextField value binding and button click
  • Previous by thread: Re: Documentation for DOMDocument, DOMElement, DOMNode, etc...
  • Next by thread: Re: pathnames in Tiger not showing volume name
  • Index(es):
    • Date
    • Thread