On Jul 14, 2014, at 11:22 AM, Mike Abdullah <mabdul...@karelia.com> wrote:

> [bigMData replaceBytesInRange:NSMakeRange(0,0)
>                                    withBytes:newBytesPtr
>                                          length:1024];

On Jul 14, 2014, at 11:23 AM, Ben Kennedy <b...@zygoat.ca> wrote:

> [bigMData replaceBytesInRange:NSMakeRange(0,0) withBytes:newBytesPtr 
> length:1024];

Wow, that's damn clever! My thinking is so clunky. It never would have occurred 
to me that NSMutableData could expand (0,0) into (0,1024) out of thin air! 
Awesome!

THX!!
-Carl


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to