• 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: FSRef -> NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: FSRef -> NSString (From: Hsu <email@hidden>)

  • Prev by Date: BDAlias 1.0.1
  • Next by Date: NSNetService, IP address and port number
  • Previous by thread: Re: FSRef -> NSString
  • Next by thread: Re: FSRef -> NSString
  • Index(es):
    • Date
    • Thread