• 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: "Clark S. Cox III" <email@hidden>
  • Date: Sat, 18 May 2002 15:02:37 -0400

On 05/18/2002 14:36, "Clark Mueller" <email@hidden> wrote:

> 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.

NSString *myNsString = ...;
char myCString[ length ];

[ myNsString getCString: myCString maxLength: sizeof myCString ];


--
Clark S. Cox III
http://clarkcox.dyndns.org/
email@hidden
_______________________________________________
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: Documentation download?
  • Previous by thread: Re: NSString -> char[]
  • Next by thread: NSOutlineView and datasource
  • Index(es):
    • Date
    • Thread