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

Re: NSString into *arguments[]


  • Subject: Re: NSString into *arguments[]
  • From: Kevin Bracey <email@hidden>
  • Date: Tue, 2 May 2006 00:04:21 +1200

thanks for your help,

Is this even possible?

but that gives me an incompatible pointer when I use it later I would like it to be a
char *arguments[]

cheers Kevin

On 01/05/2006, at 11:08 PM, Nir Soffer wrote:


On 01/05/2006, at 13:11, Kevin Bracey wrote:

char *arguments[] = { "/usr/local/accessit/data/Brooklyn.fdb", [copyToPath UTF8String] , NULL };

UTF8String returns a const char *. Try

	const char *arguments[] = { "foo", [bar UTF8String] , NULL };

I think you want to use NSTask.


Best Regards,

Nir Soffer


"Without music to decorate it, time is just a bunch of boring
production deadlines or dates by which bills must be paid."
                     -- Frank Zappa

_______________________________________________
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: John Stiles <email@hidden>
References: 
 >NSString into *arguments[] (From: Kevin Bracey <email@hidden>)
 >Re: NSString into *arguments[] (From: Nir Soffer <email@hidden>)

  • Prev by Date: Re: sorting an array of dictionaries
  • Next by Date: Accessing 8-bit bytes from a file using Cocoa
  • Previous by thread: Re: NSString into *arguments[]
  • Next by thread: Re: NSString into *arguments[]
  • Index(es):
    • Date
    • Thread