• 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
NSString into *arguments[]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSString into *arguments[]
      • From: Ondra Cada <email@hidden>
    • Re: NSString into *arguments[]
      • From: Nir Soffer <email@hidden>
  • Prev by Date: sorting an array of dictionaries
  • Next by Date: Re: "Send to iWeb" API?
  • Previous by thread: Re: sorting an array of dictionaries
  • Next by thread: Re: NSString into *arguments[]
  • Index(es):
    • Date
    • Thread