Re: Cocoa friendly Quicktime APIs?
Re: Cocoa friendly Quicktime APIs?
- Subject: Re: Cocoa friendly Quicktime APIs?
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 8 Mar 2003 05:54:09 -0800
On Saturday, March 8, 2003, at 05:11 AM, Oleg Svirgstin wrote:
Does anybody remember a fast and easy way to get folder ids (I mean
FSMakeFSSpec compatible folder ids) from a full path to a directory?
There's a couple of different ways of doing this...
1. Use CFURL to convert the POSIX path into an HFS path, then pass that
to FSMakeFSSpec().
2. Convert the POSIX path into an FSRef using FSPathMakeRef(), then
turn that into an FSSpec using FSGetCatalogInfo().
Is
there a MODERN way to get folder ids for any folder in HFS+, with any
encoding
You can use UTF-8 in paths.
and practically any length of the path?
Cocoa, and the standard C library, have a maximum path of 1,024 bytes
(PATH_MAX in sys/syslimits.h). IIRC, Carbon's file I/O calls have a
much higher limit, but I don't remember the exact number.
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
if (message.signature==FUNNY) steal(message.signature); else
message=message->next;
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.