• 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 -> char[]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString -> char[]


  • Subject: Re: NSString -> char[]
  • From: David Remahl <email@hidden>
  • Date: Sat, 18 May 2002 20:51:49 +0200

> I know this is a relatively stupid question, but how do I do that? cString
> doesn't work for my purposes, and casting to an array type doesn't work
> either.
>
> Thanks,
>
> Clark

Hmm, why does not -cString work for your purposes?

char *aStr = [@"MyString" cString]
char aChar = str[i];

/ David
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSString -> char[] (From: Clark Mueller <email@hidden>)

  • Prev by Date: Re: NSString -> char[]
  • Next by Date: Re: NSString -> char[]
  • Previous by thread: Re: NSString -> char[]
  • Next by thread: Re: NSString -> char[]
  • Index(es):
    • Date
    • Thread