• 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: How to convert a path into a 'const UInt8 *path'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert a path into a 'const UInt8 *path'?


  • Subject: Re: How to convert a path into a 'const UInt8 *path'?
  • From: Chris Hanson <email@hidden>
  • Date: Sun, 24 Aug 2003 04:03:28 -0500

On Saturday, August 23, 2003, at 09:06 PM, Gus Mueller wrote:
I think if you use [string UTF8String] to make the const UInt8*,
that'll work just fine.

No, use -[NSString fileSystemRepresentation]. That's what it's there for, to return exactly the encoding and decomposition required by lower-level filesystem APIs.

-- Chris

--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X 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: How to convert a path into a 'const UInt8 *path'? (From: Gus Mueller <email@hidden>)

  • Prev by Date: How to scale an NSImage
  • Next by Date: Subject: Help me, which book I should buy to learn Cocoa??
  • Previous by thread: Re: How to convert a path into a 'const UInt8 *path'?
  • Next by thread: Re: How to convert a path into a 'const UInt8 *path'?
  • Index(es):
    • Date
    • Thread