• 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: create a bufferarray from a string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: create a bufferarray from a string


  • Subject: Re: create a bufferarray from a string
  • From: Daniel Jalkut <email@hidden>
  • Date: Fri, 09 Dec 2005 13:08:22 -0500

Given your example you could do something like this:

[theString getCString:buff maxLength:67 encoding:NSUTF8StringEncoding];

Daniel

On Dec 9, 2005, at 12:43 PM, Andrea Salomoni wrote:

NSString * theString;
theString = [NSString stringWithString:[myOutlet stringValue]];

After it I need to create an array like:

char buff[68];

and have something like

buff[0] = 0x66;
buff[1] = 0x6F;

_______________________________________________
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: 
 >create a bufferarray from a string (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: run-time list of selectors in protocol?
  • Next by Date: Re: threads vs run-loops for keeping your GUI responsive
  • Previous by thread: create a bufferarray from a string
  • Next by thread: HTTP Pipelining
  • Index(es):
    • Date
    • Thread