By default all file access is Mac OS X is cached, external to the process, in the unified buffer cache<http://www.usenix.org/publications/library/proceedings/usenix2000/freenix/full_papers/silvers/silvers_html/>. Certain APIs may disable it if they're pretty sure it's wrong, but for the most part, if you don't see an option, it's probably not being turned off.
None of these APIs turn it off. -Ken On Wed, Aug 18, 2010 at 7:10 AM, jonat...@mugginsoft.com < jonat...@mugginsoft.com> wrote: > > The following classes implement either -initWithContentsOfFile: or an > appropriate similar factory method. > > NSData > NSArray > NSCharacterSet > NSImageRep > NSSound > NSString > > Only NSData provides a method which allows an option to control file read > caching - dataWithContentsOfFile:options:error: > > For non NSData classes does calling -initWithContentsOfFile: result in > data being cached by the file system? > > Regards > > Jonathan Mitchell > > Developer > Mugginsoft LLP > http://www.mugginsoft.com > > > > > > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please 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: > http://lists.apple.com/mailman/options/cocoa-dev/kenferry%40gmail.com > > This email sent to kenfe...@gmail.com > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com