• 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: Localizing absolute file name in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localizing absolute file name in Cocoa


  • Subject: Re: Localizing absolute file name in Cocoa
  • From: Arun <email@hidden>
  • Date: Fri, 22 May 2009 22:45:22 +0530

The displayName API will give me only the file name not the absolute path of
the file.
Ex: If i have a path as /Users/user/temp.txt, only it will return temp.txt.
Similarly componentsToDisplayForPath API will give me an array of NSStrings
containing user, temp.txt
But my requirement is to get a localized string for Complete absolute path
/Users/user/temp.txt

On Fri, May 22, 2009 at 8:39 PM, Michael Ash <email@hidden> wrote:

> On Fri, May 22, 2009 at 9:07 AM, Arun <email@hidden> wrote:
> > Hi All,
> >
> > I have absolute file path in a NSString.
> > Now before displaying this in the UI i need to localize and then display.
> > How can i localize the absolute file path.
> > Since in my app i am displaying the absolute file name using of
> > NSFileManager API's like displayName and componentsToDisplayForPath are
> not
> > useful me.
>
> Can you explain why they're not useful? They're exactly what I would
> recommend you use.
>
> Mike
> _______________________________________________
>
> 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
>
_______________________________________________

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: Localizing absolute file name in Cocoa
      • From: Michael Ash <email@hidden>
References: 
 >Localizing absolute file name in Cocoa (From: Arun <email@hidden>)
 >Re: Localizing absolute file name in Cocoa (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: [iPhone] Any way to animate a tab-bar away?
  • Next by Date: [iPhone] Zooming & Dragging a PDF Inside a UIScrollView
  • Previous by thread: Re: Localizing absolute file name in Cocoa
  • Next by thread: Re: Localizing absolute file name in Cocoa
  • Index(es):
    • Date
    • Thread