• 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: Cocoa friendly Quicktime APIs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: Cocoa friendly Quicktime APIs? (From: Oleg Svirgstin <email@hidden>)

  • Prev by Date: Re: [NSOpenPanel setTreatsFilePackagesAsDirectories] and a doc-based application
  • Next by Date: Re: Cocoa friendly Quicktime APIs?
  • Previous by thread: Re: Cocoa friendly Quicktime APIs?
  • Next by thread: Re: Cocoa friendly Quicktime APIs?
  • Index(es):
    • Date
    • Thread