• 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: combining NSData objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: combining NSData objects?


  • Subject: Re: combining NSData objects?
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 20 Feb 2005 20:36:41 -0700


On Feb 20, 2005, at 8:03 PM, justin webster wrote:

how do I replace a range of bytes in an NSdata object?

You can't; NSData objects are immutable.

or - how do I join NSdata the way I join strings?

You can use NSMutableData for this. NSMutableData has two append methods you can use; see the NSMutableData documentation for details. You can use the -mutableCopy method to get a mutable version of an NSData object.


Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________
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: 
 >combining NSData objects? (From: justin webster <email@hidden>)

  • Prev by Date: Re: System Provided Font Menu?
  • Next by Date: re:NSData
  • Previous by thread: combining NSData objects?
  • Next by thread: Bundling UNIX apps inside Cocoa app?
  • Index(es):
    • Date
    • Thread