NSString into *arguments[]
NSString into *arguments[]
- Subject: NSString into *arguments[]
- From: Kevin Bracey <email@hidden>
- Date: Mon, 1 May 2006 22:11:21 +1200
Hi all,
This is half C and half Cocoa so excuse my C ignorance
NSString *copyToPath = [NSString stringWithFormat:@"%@/Brooklyn.fdb" ,
[[NSUserDefaults standardUserDefaults] objectForKey:@"CopyToFolder"]];
char *arguments[] = { "/usr/local/accessit/data/Brooklyn.fdb",
[copyToPath UTF8String] , NULL };
warning: initialization discards qualifiers from pointer target type
I don't want to discard whatever this is discarding do I?
How should I be getting this info from NSString into my *arguments[]?
Thanks
Kevin
"I am the master of my fate, I am the captain of my soul."
_______________________________________________
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