• 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: NSFileWrapper Bug/Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >NSFileWrapper Bug/Problem (From: Matt Ronge <email@hidden>)

  • Prev by Date: Re: multiple definitions of compare: -- design flaw?
  • Next by Date: Re: multiple definitions of compare: -- design flaw?
  • Previous by thread: Re: NSFileWrapper Bug/Problem
  • Next by thread: Sudden problems with linking my project
  • Index(es):
    • Date
    • Thread