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

NSString & NSMutableData


  • Subject: NSString & NSMutableData
  • From: "Peter Karlsson" <email@hidden>
  • Date: Mon, 21 Apr 2003 15:55:55 +0000

Dear list!

I can put a NSString into a NSMutableData object with this code:

NSMutableData *data;
NSString *myString = @"Some text";
data = [NSMutableData dataWithBytes:[myString cString] length:[myString length]];

But how do I get the NSMutableData back to the NSString object?

Peter


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
_______________________________________________
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.
  • Prev by Date: Re: Saving an alias(AliasHandle/AliasRecord) with NSUserDefaults.
  • Next by Date: Re: NSString & NSMutableData
  • Previous by thread: Re: Saving an alias(AliasHandle/AliasRecord) with NSUserDefaults.
  • Next by thread: Re: NSString & NSMutableData
  • Index(es):
    • Date
    • Thread