• 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: Str255 to NSString and Back
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Str255 to NSString and Back


  • Subject: Re: Str255 to NSString and Back
  • From: Ian Anderson <email@hidden>
  • Date: Fri, 8 Jul 2005 14:48:24 -0700

You need to use CFString to convert to and from a Pascal string. CFStringCreateWithPascalString() and CFStringGetPascalString()

Ian


Ok im hoping there is an easy answer to this problem
Ive been messing around with it for a few days.

Im sending network data using Str255, and i want to
convert to to an NSString on the other side. And on
the client side i start with an NSString and send it
as a Str255.

What im looking for is something along the lines of

Str255 = NSString
NSString = Str255

I know thats over simplified but I cant find any good
infomation on the subject. I can assure all data is
ASCII so i dont need to worry about data type errors.
Thanks guys

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

  • Follow-Ups:
    • Re: Str255 to NSString and Back
      • From: Andrew Thompson <email@hidden>
References: 
 >Str255 to NSString and Back (From: Kodex <email@hidden>)

  • Prev by Date: Str255 to NSString and Back
  • Next by Date: Re: help! I lost my menu bar
  • Previous by thread: Str255 to NSString and Back
  • Next by thread: Re: Str255 to NSString and Back
  • Index(es):
    • Date
    • Thread