You should consider reading the documentation or the headers
associated with the File Manager and Core Foundation. Without
these you will have a hard time doing whatever it is you are
attempting. Have a look through CFURL.h and CFString.h-- Learn
these. Then look at Files.h... as they say, "Use the Source
Luke".
alex
At 4:54 AM +0000 9/14/05, darpan kamboj wrote:
Hi
can I create long path name using CFString/CFURL.
Plz If possible give me
some code code example.
Thanks and Regards
On Tue, 13 Sep 2005 alex wrote :
>Use CFString/CFURL to represent the paths. You need to be
using unicode
(which CFString and CFURL know well).
>
>You can request the path from CFURL in many different
encodings,
specifically like the one FSCreateDirectoryUnicode() seems to
imply.
>
>alex
>
>
>At 3:00 PM +0000 9/13/05, darpan kamboj wrote:
>>
>>Hi all
>> I am using the following
code for creating a directory.
>>
>>OSStatus err;
>>OSErr error;
>>FSRef ref;
>>const char *cCompletePath;
>>err=FSPathMakeRef((const UInt8*)cCompletePath, &ref,
NULL);
>>
>>error=FSCreateDirectoryUnicode (&ref, pFileName.length(),
(const UniChar*
)
>>pFileName.unicode(), kFSCatInfoNone, NULL, NULL, NULL,
NULL);
>>It works fine when the cCompletePath="/unique/created
folders"
>>It works fine when the path is in english characters. I have
two hard disks
>>attached with my system one of which is spanish. When the
cCompletePath="/
>>unique/created folders/åpplæ" then FSPathMakeRef()
fails.
>>
>>I want to create a folder which have spanis name
"ortåsdñ" under the Path
>>cCompletePath="/unique/created
folders/åpplæ"
>>"åpplæ" is also a spanish named folder.
>>
>>What should I have to do?
>>
>>
>>Thanks and Regards
>>
>>
>>
>>
>><http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/
signature-home.htm/1507191490@Middle5?PARTNER=3>
>>
>> _______________________________________________
>>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/spam%40foinc.com
>>
>>This email sent to email@hidden
_______________________________________________
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