Re: NSString to char[]
Re: NSString to char[]
- Subject: Re: NSString to char[]
- From: j o a r <email@hidden>
- Date: Sun, 24 Jul 2005 19:10:06 +0200
On 24 jul 2005, at 18.56, Jerry Brace wrote:
I have a NSString set up like so:
NSBundle *thisBundle = [NSBundle bundleForClass:[self class]];
NSString * path = [thisBundle pathForResource:@"wakein" ofType:@""];
Now I need to assign "path" to:
char sysctlPath[]
You probably want to have a look at "-[NSString
fileSystemRepresentation]":
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSString.html#//apple_ref/doc/uid/20000154-
fileSystemRepresentation>
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden