Re: Localizing absolute file name in Cocoa

2009-05-22 Thread Sean McBride
On 5/22/09 6:37 PM, Arun said: >I have absolute file path in a NSString. >Now before displaying this in the UI i need to localize and then display. If you need to display a path to the user, consider using NSPathControl. It will correctly use the display name of each path component. --

Re: Localizing absolute file name in Cocoa

2009-05-22 Thread Michael Ash
On Fri, May 22, 2009 at 1:54 PM, Ken Thomases wrote: > On May 22, 2009, at 12:48 PM, Michael Ash wrote: > >> On Fri, May 22, 2009 at 1:15 PM, Arun wrote: >> >>> The displayName API will give me only the file name not the absolute path >>> of >>> >>> the file. >>> >>> Ex: If i have a path as /User

Re: Localizing absolute file name in Cocoa

2009-05-22 Thread Ken Thomases
On May 22, 2009, at 12:48 PM, Michael Ash wrote: On Fri, May 22, 2009 at 1:15 PM, Arun wrote: 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 componentsToDispla

Re: Localizing absolute file name in Cocoa

2009-05-22 Thread Michael Ash
On Fri, May 22, 2009 at 1:15 PM, Arun wrote: > 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 > cont

Re: Localizing absolute file name in Cocoa

2009-05-22 Thread Arun
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 loc

Re: Localizing absolute file name in Cocoa

2009-05-22 Thread Michael Ash
On Fri, May 22, 2009 at 9:07 AM, Arun 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 > NSFileMan

Localizing absolute file name in Cocoa

2009-05-22 Thread Arun
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