Re: How to convert a path into a 'const UInt8 *path'?
Re: How to convert a path into a 'const UInt8 *path'?
- Subject: Re: How to convert a path into a 'const UInt8 *path'?
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 23 Aug 2003 20:45:31 -0700
On Saturday, August 23, 2003, at 06:36 PM, R. Ecalcitrance wrote:
Anyone know how to convert a path into a 'const UInt8 *path'?
...I need to make FSRef from an NSOpenPanel path and I was thinking to
use
'FSPathMakeRef' but it takes a 'const UInt8 *path'. ???
If you have an NSString called "path" with a POSIX path, then all you
need to do is call [path fileSystemRepresentation] to get a value that
is suitable to pass to FSPathMakeRef(). I've been told not to use [path
UTF8String], although at this time they appear to do the same thing.
A "UInt8" is an unsigned 8-bit value, which according to MacTypes.h
(you did search the headers, didn't you?) is typedef'd to "unsigned
char".
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://seiryu.home.comcast.net/
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone." - Bjarne Stroustrup
_______________________________________________
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.