/core/sdk-objc/Documentation/GMUserFileSystem/Categories/NSObject_GMUserFileSystemOperations_/CompositePage.html

http://macfuse.googlecode.com/ · HTML · 923 lines · 902 code · 21 blank · 0 comment · 0 complexity · 50f1a34483b2dc215164479e3a9a8b41 MD5 · raw file

Large files are truncated click here to view the full file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
  2. <html>
  3. <head>
  4. <title>NSObject(GMUserFileSystemOperations) </title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <meta name="generator" content="HeaderDoc">
  7. <style type="text/css"><!--.keyword {background:#ffffff; color:#761550;}.template {background:#ffffff; color:#761550;}.number {background: #ffffff; color:#0000ff;}.function {background:#ffffff; color:#000000;}.string {background: #ffffff; color:#891315;}.preprocessor {background:#ffffff; color:#236e25}.comment {background:#ffffff; color:#236e25}.char {background: #ffffff; color:#0000ff;}.var {background:#ffffff; color:#000000;}.type {background:#ffffff; color:#761550;}.param {background:#ffffff; color:#000000;}a:link {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #0000ff;}a:visited:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:active {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}a:hover {text-decoration: underline; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: small; color: #ff6600;}h4 {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: tiny; font-weight: bold;}body {text-decoration: none; font-family: lucida grande, geneva, helvetica, arial, sans-serif; font-size: 10pt;}--></style>
  8. </head>
  9. <body bgcolor="#ffffff">
  10. <a name="top"></a><a name="//apple_ref/doc/class/NSObject(GMUserFileSystemOperations)" title="NSObject(GMUserFileSystemOperations) "></a><hr>
  11. <table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  12. <h1><a name="NSObject(GMUserFileSystemOperations)">NSObject(GMUserFileSystemOperations) </a></h1>
  13. </td></tr></table>
  14. <hr>
  15. <p><b>Extends&nbsp;Class:</b> <!-- a logicalPath="//apple_ref/occ/cl/NSObject" -->NSObject<!-- /a --><br><b>Declared In:</b> <a href="../../index.html" target="_top">GMUserFileSystem</a><br></p>
  16. <h5 class="tight">
  17. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  18. </h5>
  19. <p><!-- begin discussion --> The core set of file system operations the delegate must implement.
  20. Unless otherwise noted, they typically should behave like the NSFileManager
  21. equivalent. However, the error codes that they return should correspond to
  22. the BSD-equivalent call and be in the NSPOSIXErrorDomain.<br><br>
  23. For a read-only filesystem, you can typically pick-and-choose which methods
  24. to implement. For example, a minimal read-only filesystem might implement:</p>
  25. <ul>
  26. - (NSArray *)contentsOfDirectoryAtPath:(NSString *)path
  27. error:(NSError **)error;<br>
  28. - (NSDictionary *)attributesOfItemAtPath:(NSString *)path
  29. userData:(id)userData
  30. error:(NSError **)error;<br>
  31. - (NSData *)contentsAtPath:(NSString *)path;</ul>
  32. <p>
  33. For a writeable filesystem, the Finder can be quite picky unless the majority
  34. of these methods are implemented. However, you can safely skip hard-links,
  35. symbolic links, and extended attributes.
  36. <!-- end discussion --></p>
  37. <p></p>
  38. <hr>
  39. <br><h2>Methods</h2>
  40. <a name="HeaderDoc_methods"></a><dl>
  41. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsOfDirectoryAtPath:error:" target="_top">-contentsOfDirectoryAtPath:error: </a></tt></dt>
  42. <dd>Returns directory contents at the specified path.
  43. </dd>
  44. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfItemAtPath:userData:error:" target="_top">-attributesOfItemAtPath:userData:error: </a></tt></dt>
  45. <dd>Returns attributes at the specified path.
  46. </dd>
  47. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfFileSystemForPath:error:" target="_top">-attributesOfFileSystemForPath:error: </a></tt></dt>
  48. <dd>Returns file system attributes.
  49. </dd>
  50. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setAttributes:ofItemAtPath:userData:error:" target="_top">-setAttributes:ofItemAtPath:userData:error: </a></tt></dt>
  51. <dd>Set attributes at the specified path.
  52. </dd>
  53. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsAtPath:" target="_top">-contentsAtPath: </a></tt></dt>
  54. <dd>Returns directory contents at the specified path.
  55. </dd>
  56. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/openFileAtPath:mode:userData:error:" target="_top">-openFileAtPath:mode:userData:error: </a></tt></dt>
  57. <dd>Opens the file at the given path for read/write.
  58. </dd>
  59. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/releaseFileAtPath:userData:" target="_top">-releaseFileAtPath:userData: </a></tt></dt>
  60. <dd>Called when an opened file is closed.
  61. </dd>
  62. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/readFileAtPath:userData:buffer:size:offset:error:" target="_top">-readFileAtPath:userData:buffer:size:offset:error: </a></tt></dt>
  63. <dd>Reads data from the open file at the specified path.
  64. </dd>
  65. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/writeFileAtPath:userData:buffer:size:offset:error:" target="_top">-writeFileAtPath:userData:buffer:size:offset:error: </a></tt></dt>
  66. <dd>Writes data to the open file at the specified path.
  67. </dd>
  68. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/exchangeDataOfItemAtPath:withItemAtPath:error:" target="_top">-exchangeDataOfItemAtPath:withItemAtPath:error: </a></tt></dt>
  69. <dd>Atomically exchanges data between files.
  70. </dd>
  71. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createDirectoryAtPath:attributes:error:" target="_top">-createDirectoryAtPath:attributes:error: </a></tt></dt>
  72. <dd>Creates a directory at the specified path.
  73. </dd>
  74. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createFileAtPath:attributes:userData:error:" target="_top">-createFileAtPath:attributes:userData:error: </a></tt></dt>
  75. <dd>Creates and opens a file at the specified path.
  76. </dd>
  77. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/moveItemAtPath:toPath:error:" target="_top">-moveItemAtPath:toPath:error: </a></tt></dt>
  78. <dd>Moves or renames an item.
  79. </dd>
  80. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeDirectoryAtPath:error:" target="_top">-removeDirectoryAtPath:error: </a></tt></dt>
  81. <dd>Remove the directory at the given path.
  82. </dd>
  83. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeItemAtPath:error:" target="_top">-removeItemAtPath:error: </a></tt></dt>
  84. <dd>Removes the item at the given path.
  85. </dd>
  86. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/linkItemAtPath:toPath:error:" target="_top">-linkItemAtPath:toPath:error:</a></tt></dt>
  87. <dd>Creates a hard link.
  88. </dd>
  89. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/createSymbolicLinkAtPath:withDestinationPath:error:" target="_top">-createSymbolicLinkAtPath:withDestinationPath:error:</a></tt></dt>
  90. <dd>Creates a symbolic link.
  91. </dd>
  92. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/destinationOfSymbolicLinkAtPath:error:" target="_top">-destinationOfSymbolicLinkAtPath:error:</a></tt></dt>
  93. <dd>Reads the destination of a symbolic link.
  94. </dd>
  95. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/extendedAttributesOfItemAtPath:error:" target="_top">-extendedAttributesOfItemAtPath:error: </a></tt></dt>
  96. <dd>Returns the names of the extended attributes at the specified path.
  97. </dd>
  98. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/valueOfExtendedAttribute:ofItemAtPath:position:error:" target="_top">-valueOfExtendedAttribute:ofItemAtPath:position:error:</a></tt></dt>
  99. <dd>Returns the contents of the extended attribute at the specified path.
  100. </dd>
  101. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setExtendedAttribute:ofItemAtPath:value:position:options:error:" target="_top">-setExtendedAttribute:ofItemAtPath:value:position:options:error:</a></tt></dt>
  102. <dd>Writes the contents of the extended attribute at the specified path.
  103. </dd>
  104. <dt><tt><a href="CompositePage.html#//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/removeExtendedAttribute:ofItemAtPath:error:" target="_top">-removeExtendedAttribute:ofItemAtPath:error:</a></tt></dt>
  105. <dd>Removes the extended attribute at the specified path.
  106. </dd>
  107. </dl>
  108. <hr>
  109. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsOfDirectoryAtPath:error:; name=NSObject(GMUserFileSystemOperations)::contentsOfDirectoryAtPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsOfDirectoryAtPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  110. <h3><a name="contentsOfDirectoryAtPath:error:">contentsOfDirectoryAtPath:error: </a></h3>
  111. </td></tr></table>
  112. <hr>
  113. <p><!-- begin abstract -->Returns directory contents at the specified path.
  114. <!-- end abstract --></p>
  115. <p></p>
  116. <b>See Also:</b><blockquote><dl>
  117. <dt>
  118. <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->readdir(3)<!-- /a -->
  119. </dt>
  120. <dd></dd>
  121. </dl></blockquote>
  122. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSArray //apple_ref/occ/tdef/NSArray //apple_ref/occ/tag/NSArray //apple_ref/occ/econst/NSArray //apple_ref/occ/struct/NSArray //apple_ref/occ/clconst/NSArray //apple_ref/occ/intf/NSArray" --><span class="type">NSArray</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/contentsOfDirectoryAtPath //apple_ref/occ/clm/contentsOfDirectoryAtPath //apple_ref/occ/intfcm/contentsOfDirectoryAtPath //apple_ref/occ/intfm/contentsOfDirectoryAtPath //apple_ref/occ/func/contentsOfDirectoryAtPath //apple_ref/occ/ftmplt/contentsOfDirectoryAtPath //apple_ref/occ/defn/contentsOfDirectoryAtPath //apple_ref/occ/macro/contentsOfDirectoryAtPath" --><span class="function">contentsOfDirectoryAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span>
  123. <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>;</pre>
  124. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  125. <dl>
  126. <dt><code>path </code></dt>
  127. <dd>The path to a directory.</dd>
  128. <dt><code>error </code></dt>
  129. <dd>Should be filled with a POSIX error in case of failure.</dd>
  130. </dl>
  131. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  132. <p><!-- begin return value -->An array of NSString or nil on error.
  133. <!-- end return value --></p>
  134. <h5 class="tight">
  135. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  136. </h5>
  137. <p><!-- begin discussion -->Returns an array of NSString containing the names of files and
  138. sub-directories in the specified directory.
  139. <!-- end discussion --></p>
  140. <p></p>
  141. <hr>
  142. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfItemAtPath:userData:error:; name=NSObject(GMUserFileSystemOperations)::attributesOfItemAtPath:userData:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfItemAtPath:userData:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  143. <h3><a name="attributesOfItemAtPath:userData:error:">attributesOfItemAtPath:userData:error: </a></h3>
  144. </td></tr></table>
  145. <hr>
  146. <p><!-- begin abstract -->Returns attributes at the specified path.
  147. <!-- end abstract --></p>
  148. <p></p>
  149. <b>See Also:</b><blockquote><dl>
  150. <dt>
  151. <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->stat(2), fstat(2)<!-- /a -->
  152. </dt>
  153. <dd></dd>
  154. </dl></blockquote>
  155. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSDictionary //apple_ref/occ/tdef/NSDictionary //apple_ref/occ/tag/NSDictionary //apple_ref/occ/econst/NSDictionary //apple_ref/occ/struct/NSDictionary //apple_ref/occ/clconst/NSDictionary //apple_ref/occ/intf/NSDictionary" --><span class="type">NSDictionary</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/attributesOfItemAtPath //apple_ref/occ/clm/attributesOfItemAtPath //apple_ref/occ/intfcm/attributesOfItemAtPath //apple_ref/occ/intfm/attributesOfItemAtPath //apple_ref/occ/func/attributesOfItemAtPath //apple_ref/occ/ftmplt/attributesOfItemAtPath //apple_ref/occ/defn/attributesOfItemAtPath //apple_ref/occ/macro/attributesOfItemAtPath" --><span class="function">attributesOfItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
  156. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  157. <dl>
  158. <dt><code>path </code></dt>
  159. <dd>The path to the item.</dd>
  160. <dt><code>userData </code></dt>
  161. <dd>The userData corresponding to this open file or nil.</dd>
  162. <dt><code>error </code></dt>
  163. <dd>Should be filled with a POSIX error in case of failure.</dd>
  164. </dl>
  165. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  166. <p><!-- begin return value -->A dictionary of attributes or nil on error.
  167. <!-- end return value --></p>
  168. <h5 class="tight">
  169. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  170. </h5>
  171. <p><!-- begin discussion -->Returns a dictionary of attributes at the given path. It is required to
  172. return at least the NSFileType attribute. You may omit the NSFileSize
  173. attribute if contentsAtPath: is implemented, although this is less efficient.
  174. The following keys are currently supported (unknown keys are ignored):</p>
  175. <ul>
  176. <li>NSFileType [Required]
  177. </li>
  178. <li>NSFileSize [Recommended]
  179. </li>
  180. <li>NSFileModificationDate
  181. </li>
  182. <li>NSFileReferenceCount
  183. </li>
  184. <li>NSFilePosixPermissions
  185. </li>
  186. <li>NSFileOwnerAccountID
  187. </li>
  188. <li>NSFileGroupOwnerAccountID
  189. </li>
  190. <li>NSFileSystemFileNumber (64-bit on 10.5+)
  191. </li>
  192. <li>NSFileCreationDate (if supports extended dates)
  193. </li>
  194. <li>kGMUserFileSystemFileBackupDateKey (if supports extended dates)
  195. </li>
  196. <li>kGMUserFileSystemFileChangeDateKey
  197. </li>
  198. <li>kGMUserFileSystemFileAccessDateKey
  199. </li>
  200. <li>kGMUserFileSystemFileFlagsKey</li>
  201. </ul>
  202. <br><p>
  203. If this is the fstat variant and userData was supplied in openFileAtPath: or
  204. createFileAtPath: then it will be passed back in this call.<br><!-- end discussion --></p>
  205. <p></p>
  206. <hr>
  207. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfFileSystemForPath:error:; name=NSObject(GMUserFileSystemOperations)::attributesOfFileSystemForPath:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/attributesOfFileSystemForPath:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  208. <h3><a name="attributesOfFileSystemForPath:error:">attributesOfFileSystemForPath:error: </a></h3>
  209. </td></tr></table>
  210. <hr>
  211. <p><!-- begin abstract -->Returns file system attributes.
  212. <!-- end abstract --></p>
  213. <p></p>
  214. <b>See Also:</b><blockquote><dl>
  215. <dt>
  216. <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->statvfs(3)<!-- /a -->
  217. </dt>
  218. <dd></dd>
  219. </dl></blockquote>
  220. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSDictionary //apple_ref/occ/tdef/NSDictionary //apple_ref/occ/tag/NSDictionary //apple_ref/occ/econst/NSDictionary //apple_ref/occ/struct/NSDictionary //apple_ref/occ/clconst/NSDictionary //apple_ref/occ/intf/NSDictionary" --><span class="type">NSDictionary</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/attributesOfFileSystemForPath //apple_ref/occ/clm/attributesOfFileSystemForPath //apple_ref/occ/intfcm/attributesOfFileSystemForPath //apple_ref/occ/intfm/attributesOfFileSystemForPath //apple_ref/occ/func/attributesOfFileSystemForPath //apple_ref/occ/ftmplt/attributesOfFileSystemForPath //apple_ref/occ/defn/attributesOfFileSystemForPath //apple_ref/occ/macro/attributesOfFileSystemForPath" --><span class="function">attributesOfFileSystemForPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
  221. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  222. <dl>
  223. <dt><code>path </code></dt>
  224. <dd>A path on the file system (it is safe to ignore this).</dd>
  225. <dt><code>error </code></dt>
  226. <dd>Should be filled with a POSIX error in case of failure.</dd>
  227. </dl>
  228. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  229. <p><!-- begin return value -->A dictionary of attributes for the file system.
  230. <!-- end return value --></p>
  231. <h5 class="tight">
  232. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  233. </h5>
  234. <p><!-- begin discussion -->Returns a dictionary of attributes for the file system.
  235. The following keys are currently supported (unknown keys are ignored):</p>
  236. <ul>
  237. <li>NSFileSystemSize
  238. </li>
  239. <li>NSFileSystemFreeSize
  240. </li>
  241. <li>NSFileSystemNodes
  242. </li>
  243. <li>NSFileSystemFreeNodes
  244. </li>
  245. <li>kGMUserFileSystemVolumeSupportsExtendedDatesKey</li>
  246. </ul>
  247. <br><!-- end discussion --><p></p>
  248. <hr>
  249. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setAttributes:ofItemAtPath:userData:error:; name=NSObject(GMUserFileSystemOperations)::setAttributes:ofItemAtPath:userData:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/setAttributes:ofItemAtPath:userData:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  250. <h3><a name="setAttributes:ofItemAtPath:userData:error:">setAttributes:ofItemAtPath:userData:error: </a></h3>
  251. </td></tr></table>
  252. <hr>
  253. <p><!-- begin abstract -->Set attributes at the specified path.
  254. <!-- end abstract --></p>
  255. <p></p>
  256. <b>See Also:</b><blockquote><dl>
  257. <dt>
  258. <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->truncate(2), chown(2), chmod(2), utimes(2), chflags(2),<!-- /a -->
  259. </dt>
  260. <dd></dd>
  261. <dt>
  262. <!-- a logicalPath="//apple_ref/occ/cl/ftruncate(2), //apple_ref/occ/tdef/ftruncate(2), //apple_ref/occ/tag/ftruncate(2), //apple_ref/occ/econst/ftruncate(2), //apple_ref/occ/struct/ftruncate(2), //apple_ref/occ/data/ftruncate(2), //apple_ref/occ/clconst/ftruncate(2), //apple_ref/occ/intf/ftruncate(2), //apple_ref/occ/instm/ftruncate(2), //apple_ref/occ/clm/ftruncate(2), //apple_ref/occ/intfcm/ftruncate(2), //apple_ref/occ/intfm/ftruncate(2), //apple_ref/occ/func/ftruncate(2), //apple_ref/occ/ftmplt/ftruncate(2), //apple_ref/occ/defn/ftruncate(2), //apple_ref/occ/macro/ftruncate(2), //apple_ref/doc/com/intfm/ftruncate(2)," -->fchown(2), fchmod(2), futimes(2), fchflags(2)<!-- /a -->
  263. </dt>
  264. <dd></dd>
  265. </dl></blockquote>
  266. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/setAttributes //apple_ref/occ/clm/setAttributes //apple_ref/occ/intfcm/setAttributes //apple_ref/occ/intfm/setAttributes //apple_ref/occ/func/setAttributes //apple_ref/occ/ftmplt/setAttributes //apple_ref/occ/defn/setAttributes //apple_ref/occ/macro/setAttributes" --><span class="function">setAttributes</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSDictionary //apple_ref/occ/tdef/NSDictionary //apple_ref/occ/tag/NSDictionary //apple_ref/occ/econst/NSDictionary //apple_ref/occ/struct/NSDictionary //apple_ref/occ/clconst/NSDictionary //apple_ref/occ/intf/NSDictionary" --><span class="type">NSDictionary</span><!-- /a --> <span class="type">*</span>)<span class="param">attributes</span> <!-- a logicalPath="//apple_ref/occ/instm/ofItemAtPath //apple_ref/occ/clm/ofItemAtPath //apple_ref/occ/intfcm/ofItemAtPath //apple_ref/occ/intfm/ofItemAtPath //apple_ref/occ/func/ofItemAtPath //apple_ref/occ/ftmplt/ofItemAtPath //apple_ref/occ/defn/ofItemAtPath //apple_ref/occ/macro/ofItemAtPath" --><span class="function">ofItemAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
  267. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  268. <dl>
  269. <dt><code>attributes </code></dt>
  270. <dd>The attributes to set.</dd>
  271. <dt><code>path </code></dt>
  272. <dd>The path to the item.</dd>
  273. <dt><code>userData </code></dt>
  274. <dd>The userData corresponding to this open file or nil.</dd>
  275. <dt><code>error </code></dt>
  276. <dd>Should be filled with a POSIX error in case of failure.</dd>
  277. </dl>
  278. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  279. <p><!-- begin return value -->YES if the attributes are successfully set.
  280. <!-- end return value --></p>
  281. <h5 class="tight">
  282. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  283. </h5>
  284. <p><!-- begin discussion -->Sets the attributes for the item at the specified path. The following keys
  285. may be present (you must ignore unknown keys):</p>
  286. <ul>
  287. <li>NSFileSize
  288. </li>
  289. <li>NSFileOwnerAccountID
  290. </li>
  291. <li>NSFileGroupOwnerAccountID
  292. </li>
  293. <li>NSFilePosixPermissions
  294. </li>
  295. <li>NSFileModificationDate
  296. </li>
  297. <li>NSFileCreationDate (if supports extended dates)
  298. </li>
  299. <li>kGMUserFileSystemFileBackupDateKey (if supports extended dates)
  300. </li>
  301. <li>kGMUserFileSystemFileChangeDateKey
  302. </li>
  303. <li>kGMUserFileSystemFileAccessDateKey
  304. </li>
  305. <li>kGMUserFileSystemFileFlagsKey</li>
  306. </ul>
  307. <br><p>
  308. If this is the f-variant and userData was supplied in openFileAtPath: or
  309. createFileAtPath: then it will be passed back in this call.<br><!-- end discussion --></p>
  310. <p></p>
  311. <hr>
  312. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsAtPath:; name=NSObject(GMUserFileSystemOperations)::contentsAtPath: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/contentsAtPath:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  313. <h3><a name="contentsAtPath:">contentsAtPath: </a></h3>
  314. </td></tr></table>
  315. <hr>
  316. <p><!-- begin abstract -->Returns directory contents at the specified path.
  317. <!-- end abstract --></p>
  318. <p></p>
  319. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/NSData //apple_ref/occ/tdef/NSData //apple_ref/occ/tag/NSData //apple_ref/occ/econst/NSData //apple_ref/occ/struct/NSData //apple_ref/occ/clconst/NSData //apple_ref/occ/intf/NSData" --><span class="type">NSData</span><!-- /a --> <span class="type">*</span>)<!-- a logicalPath="//apple_ref/occ/instm/contentsAtPath //apple_ref/occ/clm/contentsAtPath //apple_ref/occ/intfcm/contentsAtPath //apple_ref/occ/intfm/contentsAtPath //apple_ref/occ/func/contentsAtPath //apple_ref/occ/ftmplt/contentsAtPath //apple_ref/occ/defn/contentsAtPath //apple_ref/occ/macro/contentsAtPath" --><span class="function">contentsAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="var">path</span>; </pre>
  320. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  321. <dl>
  322. <dt><code>path </code></dt>
  323. <dd>The path to the file.</dd>
  324. </dl>
  325. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  326. <p><!-- begin return value -->The contents of the file or nil if a file does not exist at path.
  327. <!-- end return value --></p>
  328. <h5 class="tight">
  329. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  330. </h5>
  331. <p><!-- begin discussion -->Returns the full contents at the given path. Implementation of
  332. this delegate method is recommended only by very simple file systems that are
  333. not concerned with performance. If contentsAtPath is implemented then you can
  334. skip open/release/read.
  335. <!-- end discussion --></p>
  336. <p></p>
  337. <hr>
  338. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/openFileAtPath:mode:userData:error:; name=NSObject(GMUserFileSystemOperations)::openFileAtPath:mode:userData:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/openFileAtPath:mode:userData:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  339. <h3><a name="openFileAtPath:mode:userData:error:">openFileAtPath:mode:userData:error: </a></h3>
  340. </td></tr></table>
  341. <hr>
  342. <p><!-- begin abstract -->Opens the file at the given path for read/write.
  343. <!-- end abstract --></p>
  344. <p></p>
  345. <b>See Also:</b><blockquote><dl>
  346. <dt>
  347. <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->open(2)<!-- /a -->
  348. </dt>
  349. <dd></dd>
  350. </dl></blockquote>
  351. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/BOOL //apple_ref/occ/tdef/BOOL //apple_ref/occ/tag/BOOL //apple_ref/occ/econst/BOOL //apple_ref/occ/struct/BOOL //apple_ref/occ/clconst/BOOL //apple_ref/occ/intf/BOOL" --><span class="type">BOOL</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/openFileAtPath //apple_ref/occ/clm/openFileAtPath //apple_ref/occ/intfcm/openFileAtPath //apple_ref/occ/intfm/openFileAtPath //apple_ref/occ/func/openFileAtPath //apple_ref/occ/ftmplt/openFileAtPath //apple_ref/occ/defn/openFileAtPath //apple_ref/occ/macro/openFileAtPath" --><span class="function">openFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/mode //apple_ref/occ/clm/mode //apple_ref/occ/intfcm/mode //apple_ref/occ/intfm/mode //apple_ref/occ/func/mode //apple_ref/occ/ftmplt/mode //apple_ref/occ/defn/mode //apple_ref/occ/macro/mode" --><span class="function">mode</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/int //apple_ref/occ/tdef/int //apple_ref/occ/tag/int //apple_ref/occ/econst/int //apple_ref/occ/struct/int //apple_ref/occ/clconst/int //apple_ref/occ/intf/int" --><span class="type">int</span><!-- /a -->)<span class="param">mode</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a --> <span class="type">*</span>)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
  352. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  353. <dl>
  354. <dt><code>path </code></dt>
  355. <dd>The path to the file.</dd>
  356. <dt><code>mode </code></dt>
  357. <dd>The open mode for the file (e.g. O_RDWR, etc.)</dd>
  358. <dt><code>userData </code></dt>
  359. <dd>Out parameter that can be filled in with arbitrary user data.
  360. The given userData will be retained and passed back in to delegate
  361. methods that are acting on this open file.</dd>
  362. <dt><code>error </code></dt>
  363. <dd>Should be filled with a POSIX error in case of failure.</dd>
  364. </dl>
  365. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  366. <p><!-- begin return value -->YES if the file was opened successfully.
  367. <!-- end return value --></p>
  368. <h5 class="tight">
  369. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  370. </h5>
  371. <p><!-- begin discussion -->This will only be called for existing files. If the file needs
  372. to be created then createFileAtPath: will be called instead.
  373. <!-- end discussion --></p>
  374. <p></p>
  375. <hr>
  376. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/releaseFileAtPath:userData:; name=NSObject(GMUserFileSystemOperations)::releaseFileAtPath:userData: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/releaseFileAtPath:userData:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  377. <h3><a name="releaseFileAtPath:userData:">releaseFileAtPath:userData: </a></h3>
  378. </td></tr></table>
  379. <hr>
  380. <p><!-- begin abstract -->Called when an opened file is closed.
  381. <!-- end abstract --></p>
  382. <p></p>
  383. <b>See Also:</b><blockquote><dl>
  384. <dt>
  385. <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->close(2)<!-- /a -->
  386. </dt>
  387. <dd></dd>
  388. </dl></blockquote>
  389. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/void //apple_ref/occ/tdef/void //apple_ref/occ/tag/void //apple_ref/occ/econst/void //apple_ref/occ/struct/void //apple_ref/occ/clconst/void //apple_ref/occ/intf/void" --><span class="type">void</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/releaseFileAtPath //apple_ref/occ/clm/releaseFileAtPath //apple_ref/occ/intfcm/releaseFileAtPath //apple_ref/occ/intfm/releaseFileAtPath //apple_ref/occ/func/releaseFileAtPath //apple_ref/occ/ftmplt/releaseFileAtPath //apple_ref/occ/defn/releaseFileAtPath //apple_ref/occ/macro/releaseFileAtPath" --><span class="function">releaseFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="var">userData</span>; </pre>
  390. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  391. <dl>
  392. <dt><code>path </code></dt>
  393. <dd>The path to the file.</dd>
  394. <dt><code>userData </code></dt>
  395. <dd>The userData corresponding to this open file or nil.</dd>
  396. </dl>
  397. <h5 class="tight">
  398. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  399. </h5>
  400. <p><!-- begin discussion -->If userData was provided in the corresponding openFileAtPath: call
  401. then it will be passed in userData and released after this call completes.
  402. <!-- end discussion --></p>
  403. <p></p>
  404. <hr>
  405. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/readFileAtPath:userData:buffer:size:offset:error:; name=NSObject(GMUserFileSystemOperations)::readFileAtPath:userData:buffer:size:offset:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/readFileAtPath:userData:buffer:size:offset:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  406. <h3><a name="readFileAtPath:userData:buffer:size:offset:error:">readFileAtPath:userData:buffer:size:offset:error: </a></h3>
  407. </td></tr></table>
  408. <hr>
  409. <p><!-- begin abstract -->Reads data from the open file at the specified path.
  410. <!-- end abstract --></p>
  411. <p></p>
  412. <b>See Also:</b><blockquote><dl>
  413. <dt>
  414. <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->pread(2)<!-- /a -->
  415. </dt>
  416. <dd></dd>
  417. </dl></blockquote>
  418. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/int //apple_ref/occ/tdef/int //apple_ref/occ/tag/int //apple_ref/occ/econst/int //apple_ref/occ/struct/int //apple_ref/occ/clconst/int //apple_ref/occ/intf/int" --><span class="type">int</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/readFileAtPath //apple_ref/occ/clm/readFileAtPath //apple_ref/occ/intfcm/readFileAtPath //apple_ref/occ/intfm/readFileAtPath //apple_ref/occ/func/readFileAtPath //apple_ref/occ/ftmplt/readFileAtPath //apple_ref/occ/defn/readFileAtPath //apple_ref/occ/macro/readFileAtPath" --><span class="function">readFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/buffer //apple_ref/occ/clm/buffer //apple_ref/occ/intfcm/buffer //apple_ref/occ/intfm/buffer //apple_ref/occ/func/buffer //apple_ref/occ/ftmplt/buffer //apple_ref/occ/defn/buffer //apple_ref/occ/macro/buffer" --><span class="function">buffer</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/char //apple_ref/occ/tdef/char //apple_ref/occ/tag/char //apple_ref/occ/econst/char //apple_ref/occ/struct/char //apple_ref/occ/clconst/char //apple_ref/occ/intf/char" --><span class="type">char</span><!-- /a --> <span class="type">*</span>)<span class="param">buffer</span> <!-- a logicalPath="//apple_ref/occ/instm/size //apple_ref/occ/clm/size //apple_ref/occ/intfcm/size //apple_ref/occ/intfm/size //apple_ref/occ/func/size //apple_ref/occ/ftmplt/size //apple_ref/occ/defn/size //apple_ref/occ/macro/size" --><span class="function">size</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/size_t //apple_ref/occ/tdef/size_t //apple_ref/occ/tag/size_t //apple_ref/occ/econst/size_t //apple_ref/occ/struct/size_t //apple_ref/occ/clconst/size_t //apple_ref/occ/intf/size_t" --><span class="type">size_t</span><!-- /a -->)<span class="param">size</span> <!-- a logicalPath="//apple_ref/occ/instm/offset //apple_ref/occ/clm/offset //apple_ref/occ/intfcm/offset //apple_ref/occ/intfm/offset //apple_ref/occ/func/offset //apple_ref/occ/ftmplt/offset //apple_ref/occ/defn/offset //apple_ref/occ/macro/offset" --><span class="function">offset</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/off_t //apple_ref/occ/tdef/off_t //apple_ref/occ/tag/off_t //apple_ref/occ/econst/off_t //apple_ref/occ/struct/off_t //apple_ref/occ/clconst/off_t //apple_ref/occ/intf/off_t" --><span class="type">off_t</span><!-- /a -->)<span class="param">offset</span> <!-- a logicalPath="//apple_ref/occ/instm/error //apple_ref/occ/clm/error //apple_ref/occ/intfcm/error //apple_ref/occ/intfm/error //apple_ref/occ/func/error //apple_ref/occ/ftmplt/error //apple_ref/occ/defn/error //apple_ref/occ/macro/error" --><span class="function">error</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSError //apple_ref/occ/tdef/NSError //apple_ref/occ/tag/NSError //apple_ref/occ/econst/NSError //apple_ref/occ/struct/NSError //apple_ref/occ/clconst/NSError //apple_ref/occ/intf/NSError" --><span class="type">NSError</span><!-- /a --> <span class="type">*</span><span class="type">*</span>)<span class="var">error</span>; </pre>
  419. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  420. <dl>
  421. <dt><code>path </code></dt>
  422. <dd>The path to the file.</dd>
  423. <dt><code>userData </code></dt>
  424. <dd>The userData corresponding to this open file or nil.</dd>
  425. <dt><code>buffer </code></dt>
  426. <dd>Byte buffer to read data from the file into.</dd>
  427. <dt><code>size </code></dt>
  428. <dd>The size of the provided buffer.</dd>
  429. <dt><code>offset </code></dt>
  430. <dd>The offset in the file from which to read data.</dd>
  431. <dt><code>error </code></dt>
  432. <dd>Should be filled with a POSIX error in case of failure.</dd>
  433. </dl>
  434. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  435. <p><!-- begin return value -->The number of bytes read or -1 on error.
  436. <!-- end return value --></p>
  437. <h5 class="tight">
  438. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  439. </h5>
  440. <p><!-- begin discussion -->Reads data from the file starting at offset into the provided
  441. buffer and returns the number of bytes read. If userData was provided in the
  442. corresponding openFileAtPath: or createFileAtPath: call then it will be
  443. passed in.
  444. <!-- end discussion --></p>
  445. <p></p>
  446. <hr>
  447. <!-- headerDoc=instm; uid=//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/writeFileAtPath:userData:buffer:size:offset:error:; name=NSObject(GMUserFileSystemOperations)::writeFileAtPath:userData:buffer:size:offset:error: --><a name="//apple_ref/doc/compositePage/occ/instm/NSObject(GMUserFileSystemOperations)/writeFileAtPath:userData:buffer:size:offset:error:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  448. <h3><a name="writeFileAtPath:userData:buffer:size:offset:error:">writeFileAtPath:userData:buffer:size:offset:error: </a></h3>
  449. </td></tr></table>
  450. <hr>
  451. <p><!-- begin abstract -->Writes data to the open file at the specified path.
  452. <!-- end abstract --></p>
  453. <p></p>
  454. <b>See Also:</b><blockquote><dl>
  455. <dt>
  456. <!-- a logicalPath="//apple_ref/occ/cl/man //apple_ref/occ/tdef/man //apple_ref/occ/tag/man //apple_ref/occ/econst/man //apple_ref/occ/struct/man //apple_ref/occ/data/man //apple_ref/occ/clconst/man //apple_ref/occ/intf/man //apple_ref/occ/instm/man //apple_ref/occ/clm/man //apple_ref/occ/intfcm/man //apple_ref/occ/intfm/man //apple_ref/occ/func/man //apple_ref/occ/ftmplt/man //apple_ref/occ/defn/man //apple_ref/occ/macro/man //apple_ref/doc/com/intfm/man" -->pwrite(2)<!-- /a -->
  457. </dt>
  458. <dd></dd>
  459. </dl></blockquote>
  460. <pre>- (<!-- a logicalPath="//apple_ref/occ/cl/int //apple_ref/occ/tdef/int //apple_ref/occ/tag/int //apple_ref/occ/econst/int //apple_ref/occ/struct/int //apple_ref/occ/clconst/int //apple_ref/occ/intf/int" --><span class="type">int</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/instm/writeFileAtPath //apple_ref/occ/clm/writeFileAtPath //apple_ref/occ/intfcm/writeFileAtPath //apple_ref/occ/intfm/writeFileAtPath //apple_ref/occ/func/writeFileAtPath //apple_ref/occ/ftmplt/writeFileAtPath //apple_ref/occ/defn/writeFileAtPath //apple_ref/occ/macro/writeFileAtPath" --><span class="function">writeFileAtPath</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/NSString //apple_ref/occ/tdef/NSString //apple_ref/occ/tag/NSString //apple_ref/occ/econst/NSString //apple_ref/occ/struct/NSString //apple_ref/occ/clconst/NSString //apple_ref/occ/intf/NSString" --><span class="type">NSString</span><!-- /a --> <span class="type">*</span>)<span class="param">path</span> <!-- a logicalPath="//apple_ref/occ/instm/userData //apple_ref/occ/clm/userData //apple_ref/occ/intfcm/userData //apple_ref/occ/intfm/userData //apple_ref/occ/func/userData //apple_ref/occ/ftmplt/userData //apple_ref/occ/defn/userData //apple_ref/occ/macro/userData" --><span class="function">userData</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/id //apple_ref/occ/tdef/id //apple_ref/occ/tag/id //apple_ref/occ/econst/id //apple_ref/occ/struct/id //apple_ref/occ/clconst/id //apple_ref/occ/intf/id" --><span class="type">id</span><!-- /a -->)<span class="param">userData</span> <!-- a logicalPath="//apple_ref/occ/instm/buffer //apple_ref/occ/clm/buffer //apple_ref/occ/intfcm/buffer //apple_ref/occ/intfm/buffer //apple_ref/occ/func/buffer //apple_ref/occ/ftmplt/buffer //apple_ref/occ/defn/buffer //apple_ref/occ/macro/buffer" --><span class="function">buffer</span><!-- /a -->:(<span class="keyword">const</span> <!-- a logicalPath="//apple_ref/occ/cl/char //apple_ref/occ/tdef/char //apple_ref/occ/tag/char //apple_ref/occ/econst/char //apple_ref/occ/struct/char //apple_ref/occ/clconst/char //apple_ref/occ/intf/char" --><span class="type">char</span><!-- /a --> <span class="type">*</span>)<span class="param">buffer<