Re: Initializing NSFileWrapper with harddisk crashes
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.