Re: Problem Ejecting Discs
Re: Problem Ejecting Discs
- Subject: Re: Problem Ejecting Discs
- From: Shawn Erickson <email@hidden>
- Date: Fri, 21 Nov 2003 13:01:17 -0800
On Nov 21, 2003, at 11:10 AM, Glenn Andreas wrote:
At 9:09 AM -0800 11/21/03, Shawn Erickson wrote:
An alternative is to load the file data into an NSData object and use
that object to construct the image.
Though note that NSData can/will mmap the file, which means that even
though you've got an NSData, it is still an open file on that file
system (and just memory mapped into your process memory)
You can create a NSData backed by a memory mapped file but you don't
have to do it that way. You can get an NSData instance without
maintaining an open on the fie that data was read from.
I have created NSData object from files on file shares, maintained the
NSData instance in my app and been able to unmount the share without
issues.
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.