• 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: Passing NSString to system()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing NSString to system()


  • Subject: Re: Passing NSString to system()
  • From: Peter Schart <email@hidden>
  • Date: Wed, 4 Oct 2006 12:56:32 -0500


On Oct 4, 2006, at 12:43 PM, Aychamo Aychamo wrote:

I am trying to insert the contents of a NSString into a c-string, to
be used in a system() call.  I am having problems.

I've tried:

system("%", myString);

without success.  I know I must be missing something.

Thank you
AA

Documentation is your friend! Have you read through the NSString page? In particular, be on the lookout for: cStringUsingEncoding


pete

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

References: 
 >Passing NSString to system() (From: "Aychamo Aychamo" <email@hidden>)

  • Prev by Date: Re: Passing NSString to system()
  • Next by Date: Re: When do I have to update the typing attributes?
  • Previous by thread: Re: Passing NSString to system()
  • Next by thread: Stopping double clicking of a file
  • Index(es):
    • Date
    • Thread