• 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: Initializing NSFileWrapper with harddisk crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initializing NSFileWrapper with harddisk crashes


  • Subject: Re: Initializing NSFileWrapper with harddisk crashes
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Tue, 10 Feb 2004 10:23:13 -0800

Hello...

This is just a guess, but maybe the cause is memory problems? Wouldn't doing this with an NSFileWrapper cause the entire hard disk volume to be loaded into memory (or at least the creation of NSFileWrappers for every single file and directory on the volume with lazy NSData objects)?

Perhaps you would be better off using NSDirectoryEnumerator and/or NSFileManager?

Hope that helps...

Louis

Hey all!

In my application, when i initialize a NSFileWrapper with a path to one of my harddisks (not CD/remote volumes/folders et al)
The application crashes inevitably.

sample code:
NSFileWrapper *myFile = [NSFileWrapper alloc];
[myFile initWithPath:@"/Volumes/Source/"];

Does anyone have an idea how this happens, and what i can do to prevent it from happening? Checking for "/Volumes" in the path is not really an option, since i need to get mounted CDs as well.

With Kind Regards,


Robert K.

-----------------------------{ Official Cocoa Newbie! }-----------------------------
web: http://halfduplex.net/
email: email@hidden
_______________________________________________
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.
_______________________________________________
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: 
 >Initializing NSFileWrapper with harddisk crashes (From: Robert Kuilman <email@hidden>)

  • Prev by Date: Re: base64
  • Next by Date: Subclassing in IB and init methods
  • Previous by thread: Initializing NSFileWrapper with harddisk crashes
  • Next by thread: Re: XML-RPC Framework and sending files
  • Index(es):
    • Date
    • Thread