• 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: Converting File URL Scheme Path to filesystem representation string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting File URL Scheme Path to filesystem representation string


  • Subject: Re: Converting File URL Scheme Path to filesystem representation string
  • From: Dave DeLong <email@hidden>
  • Date: Wed, 28 Jul 2010 16:34:12 -0600

I generally use NSURL's -path method.  If you then need the resulting string as a char*, then you can use -[NSString fileSystemRepresentation]

Dave

On Jul 28, 2010, at 12:39 PM, JanakiRam Palepu wrote:

> **
>
> Hi folks,
>
>
> I've been trying to extract  NSString from a URL like string , as specified
> below.
>
>
> Input String:
>
> *file://localhost/Users/admin/Music/iTunes/*
>
>
> I've tried couple of options.
>
>
> 1. Created a NSURL from the string and extracting the string
> with absoluteString method.
>
> 2. Manually removing the "file://localhost" from the above one using
> standard NSString utility methods.
>
>
> I would like to achieve this via standard coco approach. Can any one provide
> some pointers on getting the below output.
>
>
>
> Output String:
>
> */Users/admin/Music/iTunes/*
>
>
> - Janakiram
> _______________________________________________
>
> 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >Converting File URL Scheme Path to filesystem representation string (From: JanakiRam Palepu <email@hidden>)

  • Prev by Date: Re: Dock-like application
  • Next by Date: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?
  • Previous by thread: Converting File URL Scheme Path to filesystem representation string
  • Next by thread: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?
  • Index(es):
    • Date
    • Thread