• 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
Re: Problem Ejecting Discs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Problem Ejecting Discs (From: Patrick Machielse <email@hidden>)
 >Re: Problem Ejecting Discs (From: Shawn Erickson <email@hidden>)
 >Re: Problem Ejecting Discs (From: Glenn Andreas <email@hidden>)

  • Prev by Date: Re: NSLayoutManager and NSTextView problems
  • Next by Date: Re: Where to set default user defaults?
  • Previous by thread: Re: Problem Ejecting Discs
  • Next by thread: Re: Problem Ejecting Discs
  • Index(es):
    • Date
    • Thread