File packages and Activity Monitor - all files opening regardless
File packages and Activity Monitor - all files opening regardless
- Subject: File packages and Activity Monitor - all files opening regardless
- From: Keith Blount <email@hidden>
- Date: Thu, 24 May 2007 02:14:59 -0700 (PDT)
Hi,
My app saves its files as packages. As a
document-based app, it loads files
-readFromFileWrapper:ofType:error:. The file package
itself contains lots of RTFD files which represent
individual text files, and there can be a variable
number of these - as many as the user creates in the
project. These are only loaded as required, though
(that is, when the user clicks on a source list, the
associated RTFD file is only then read from disk and
its text placed in a text view).
-readFromFileWrapper... only reads the project files -
the source list XML file and a couple of other small
text files.
However, one user has experienced a problem where he
couldn't open a project containing thousands of RTFD
files on a particular machine because - the console
log reported - it would involve creating too many file
references. Checking Activity Monitor, it seems that
whenever my app opens a file package, ALL of the
contained RTFD files are opened and closed momentarily
- at least, they fly by in the "Open Files" section of
Activity Monitor for a second or two before
disappearing again.
Why is this? To reiterate, my app does not open these
files. Just the act of my app looking into the file
package seems to cause OS X to do this automatically.
Does anybody know of a solution to this? Would placing
the files into a subdirectory of the file package fix
this, or do subdirectories get opened too?
Thanks in advance for any advice,
All the best,
Keith
____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden