Re: FSRef -> NSString
Re: FSRef -> NSString
- Subject: Re: FSRef -> NSString
- From: Chris Hanson <email@hidden>
- Date: Thu, 16 Jan 2003 14:37:15 -0600
At 6:58 AM -0800 1/16/03, Hsu wrote:
How about FSRefMakePath, then stringWithCString?
Don't use FSRefMakePath, it has a fatal design flaw: There's no way
to tell in advance how large of a buffer you'll need for the path
string.
Use the FSRef->CFURLRef->CFStringRef technique or use BDAlias (which
uses it internally). Neither have this flaw.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.