FROM : Chris Hanson
DATE : Thu Jan 16 21:37:15 2003
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_removed>
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: <email_removed>
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Thu Jan 16 21:37:15 2003
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_removed>
Custom Application Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: <email_removed>
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Clark Mueller | Jan 16, 07:18 | |
| ssudre2 | Jan 16, 09:21 | |
| Chris Hanson | Jan 16, 10:28 | |
| bayleyp | Jan 16, 11:45 | |
| Hsu | Jan 16, 15:58 | |
| Chris Hanson | Jan 16, 21:37 | |
| Clark Mueller | Jan 17, 00:48 |






Cocoa mail archive

