• 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
NSData replaceBytesInRange broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSData replaceBytesInRange broken?


  • Subject: NSData replaceBytesInRange broken?
  • From: Dustin Mierau <email@hidden>
  • Date: Sat, 22 Dec 2001 01:33:53 -0800

Hey,

So I want to remove a range of bytes in my NSMutableData object. I am trying to do this:
[mData replaceBytesInRange:NSMakeRange( 0, 9 ) withBytes:""];

The size of my data object is not effected at all. Is this a bug in the NSMutableData class, or am I using this method wrong? (I assume I am using it incorrectly)

If I am using it incorrectly, I would like to know what is the best way to do this?

Thanks,
-dustin


  • Prev by Date: Re: getting file system types of /dev entries
  • Next by Date: Re: row bg color in NSOutlineView
  • Previous by thread: Re: black
  • Next by thread: TCP/IP Connections
  • Index(es):
    • Date
    • Thread