Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSRef to CFString?




On Feb 1, 2007, at 1:05 AM, Mike wrote:

Is there a single API for getting the CFString representation of the name of a file system object represented by an FSRef?

I know all about CFStringCreateWithCharacters and CFStringGetFileSystemRepresentation but was wondering if there was a single API to do it.

Depends. If you want the actual file system name, no. You'll need to get the name with either FSGetCatalogInfo and convert it. If you can use LSCopyDisplayNameForRef, then yes.


 Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >FSRef to CFString? (From: Mike <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.