On Jul 8, 2013, at 12:30 PM, Vincent Habchi <vi...@macports.org> wrote:
> On 8 juil. 2013, at 18:04, Jens Alfke <j...@mooseyard.com> wrote: >> On Jul 7, 2013, at 1:37 PM, Frederick Bartram <bartr...@acm.org> wrote: >> >>> Have you tried using NSData to store C-arrays? > > No, since my initial problem was to be able to extend the buffer as the > number of primitive read grew. NSData would not do that. NSData wouldn't let you, but NSMutableData would, with methods like appendBytes:length:, appendData:, increaseLengthBy:, etc. The underlying buffer might have to move around if it cannot be extended in place, just as it would if you use C realloc() calls. --Andy _______________________________________________ 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