Re: NSFileWrapper Bug/Problem
Re: NSFileWrapper Bug/Problem
- Subject: Re: NSFileWrapper Bug/Problem
- From: Dustin Voss <email@hidden>
- Date: Thu, 10 Jul 2003 10:18:07 -0700
On Monday, July 7, 2003, at 08:15 PM, Matt Ronge wrote:
Hi,
I'm using NSFileWrapper and when ever I pass it the path of my home
directory it goes into what seems like an infinite loop.
I've created a sample project with only one line of code (besides the
autorelease pool stuff):
NSFileWrapper *fileWrap = [[NSFileWrapper alloc]
initWithPath:"/Users/matt/"];
The program then goes into an infinite loop, if I comment out the line
it
quits right away.
What am I doing wrong?
NSFileWrapper will recursively create other file-wrappers for the
directory's contents. It might be doing that. Also, from what I can
tell, it memory-maps everything. So it's probably trying to replicate
your entire home directory in memory.
Are you sure you want to use NSFileWrapper? It seems intended for
document embedding, like an image in a text document. If you just want
to do file operations, I think you might be better off with
NSFileManager and NSFileHandle.
_______________________________________________
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.