Re: NSData dataWithContentsOfFile - freeWhenDone:NO ?
Re: NSData dataWithContentsOfFile - freeWhenDone:NO ?
- Subject: Re: NSData dataWithContentsOfFile - freeWhenDone:NO ?
- From: David Duncan <email@hidden>
- Date: Fri, 31 Oct 2008 13:09:22 -0700
On Oct 31, 2008, at 12:02 PM, email@hidden wrote:
I'm using [NSData dataWithContentsOfFile] to load an AIFF file. I
was wondering if there is a way to make it freeWhenDone:NO so I can
delete the NSData object and keep the bytes. Audio files can be
pretty big so I was hoping to avoid having to copy the bytes if
possible.
Another question might be to ask why are you trying to load the entire
file into memory? If its of any significant length then that is quite
a large allocation...
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden