• 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: Re: How to read a text file over a network
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: How to read a text file over a network


  • Subject: Re: Re: How to read a text file over a network
  • From: "Abhijeet Singh" <email@hidden>
  • Date: Thu, 16 Dec 2010 18:03:04 +0530

Thanks ... It worked (/Volumes/{name of disk as it appears in the Finder} )RegardsAbhijeet Original message From:"Nick Zitzmann"< email@hidden >Date: 14 Dec 10 12:38:27Subject: Re: How to read a text file over a networkTo: Cc: email@hidden Dec 13, 2010, at 10:12 PM, Abhijeet Singh wrote:> I think the type of server is AFP. Because the file path displayed by Finder is: afp://PriyankaMac.afpovertcp.tcp.local/shared/file1.txt.> But if i put the same file path in my file2.txt my program fails to open file1.txt file.That's most likely because that's an afp: URL, and you need to use file: URLs with NSURL, etc. Once the disk is mounted, its path will start with /Volumes/{name of disk as it appears in the Finder} in the general case, but if a volume with the same name is mounted, then its path will most likely be slightly different, so you might need to use the DiskArbitration framework in order to get a good path...Nick ZitzmannGet Yourself a cool, short @in.com
  Email ID now!
_______________________________________________

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

  • Prev by Date: Core data - binding related problem in NSNumberFormatter and NSDatePicker
  • Next by Date: Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker
  • Previous by thread: Re: How to read a text file over a network
  • Next by thread: Using bindings to lessen amount of code
  • Index(es):
    • Date
    • Thread