/core/sdk-objc/Documentation/GMResourceFork/Classes/GMResourceFork_/Methods/Methods.html

http://macfuse.googlecode.com/ · HTML · 95 lines · 94 code · 1 blank · 0 comment · 0 complexity · 3ca81c0f673324632b951eac8c3ff7d5 MD5 · raw 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>Methods</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="HeaderDoc_methods"></a><dl>
  11. <dt><tt><a href="Methods.html#//apple_ref/occ/clm/GMResourceFork/resourceFork" target="doc">+resourceFork</a></tt></dt>
  12. <dd>Returns an autoreleased GMResourceFork </dd>
  13. <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResourceFork/addResourceWithType:resID:name:data:" target="doc">-addResourceWithType:resID:name:data: </a></tt></dt>
  14. <dd>Adds a resource to the resource fork by specifying components.
  15. </dd>
  16. <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResourceFork/addResource:" target="doc">-addResource: </a></tt></dt>
  17. <dd>Adds a resource to the resource fork.
  18. </dd>
  19. <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResourceFork/data" target="doc">-data</a></tt></dt>
  20. <dd>Constucts the raw data for the resource fork.
  21. </dd>
  22. </dl>
  23. <hr>
  24. <!-- headerDoc=clm; uid=//apple_ref/occ/clm/GMResourceFork/resourceFork; name=GMResourceFork::resourceFork --><a name="//apple_ref/occ/clm/GMResourceFork/resourceFork"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  25. <h3><a name="resourceFork">resourceFork</a></h3>
  26. </td></tr></table>
  27. <hr>
  28. <p><!-- begin abstract -->Returns an autoreleased GMResourceFork <!-- end abstract --></p>
  29. <p></p>
  30. <pre>+ (<a href="../../../../../Documentation/GMResourceFork/Classes/GMResourceFork_/index.html#//apple_ref/occ/cl/GMResourceFork" logicalPath="//apple_ref/occ/cl/GMResourceFork" target="_top"><span class="type">GMResourceFork</span></a> <span class="type">*</span>)<span class="var">resourceFork</span>; </pre>
  31. <p></p>
  32. <hr>
  33. <!-- headerDoc=instm; uid=//apple_ref/occ/instm/GMResourceFork/addResourceWithType:resID:name:data:; name=GMResourceFork::addResourceWithType:resID:name:data: --><a name="//apple_ref/occ/instm/GMResourceFork/addResourceWithType:resID:name:data:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  34. <h3><a name="addResourceWithType:resID:name:data:">addResourceWithType:resID:name:data: </a></h3>
  35. </td></tr></table>
  36. <hr>
  37. <p><!-- begin abstract -->Adds a resource to the resource fork by specifying components.
  38. <!-- end abstract --></p>
  39. <p></p>
  40. <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/addResourceWithType //apple_ref/occ/clm/addResourceWithType //apple_ref/occ/intfcm/addResourceWithType //apple_ref/occ/intfm/addResourceWithType //apple_ref/occ/func/addResourceWithType //apple_ref/occ/ftmplt/addResourceWithType //apple_ref/occ/defn/addResourceWithType //apple_ref/occ/macro/addResourceWithType" --><span class="function">addResourceWithType</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/ResType //apple_ref/occ/tdef/ResType //apple_ref/occ/tag/ResType //apple_ref/occ/econst/ResType //apple_ref/occ/struct/ResType //apple_ref/occ/clconst/ResType //apple_ref/occ/intf/ResType" --><span class="type">ResType</span><!-- /a -->)<span class="param">resType</span> <!-- a logicalPath="//apple_ref/occ/instm/resID //apple_ref/occ/clm/resID //apple_ref/occ/intfcm/resID //apple_ref/occ/intfm/resID //apple_ref/occ/func/resID //apple_ref/occ/ftmplt/resID //apple_ref/occ/defn/resID //apple_ref/occ/macro/resID" --><span class="function">resID</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/ResID //apple_ref/occ/tdef/ResID //apple_ref/occ/tag/ResID //apple_ref/occ/econst/ResID //apple_ref/occ/struct/ResID //apple_ref/occ/clconst/ResID //apple_ref/occ/intf/ResID" --><span class="type">ResID</span><!-- /a -->)<span class="param">resID</span> <!-- a logicalPath="//apple_ref/occ/instm/name //apple_ref/occ/clm/name //apple_ref/occ/intfcm/name //apple_ref/occ/intfm/name //apple_ref/occ/func/name //apple_ref/occ/ftmplt/name //apple_ref/occ/defn/name //apple_ref/occ/macro/name" --><span class="function">name</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">name</span> <!-- a logicalPath="//apple_ref/occ/instm/data //apple_ref/occ/clm/data //apple_ref/occ/intfcm/data //apple_ref/occ/intfm/data //apple_ref/occ/func/data //apple_ref/occ/ftmplt/data //apple_ref/occ/defn/data //apple_ref/occ/macro/data" --><span class="function">data</span><!-- /a -->:(<!-- 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>)<span class="var">data</span>; </pre>
  41. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  42. <dl>
  43. <dt><code>resType </code></dt>
  44. <dd>The four-char code for the resource, e.g. 'icns'</dd>
  45. <dt><code>resID </code></dt>
  46. <dd>The ID of the resource, e.g. 256 for webloc 'url' contents</dd>
  47. <dt><code>name </code></dt>
  48. <dd>The name of the resource; may be nil (retained)</dd>
  49. <dt><code>data </code></dt>
  50. <dd>The raw data for the resource (retained)</dd>
  51. </dl>
  52. <h5 class="tight">
  53. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  54. </h5>
  55. <p><!-- begin discussion -->See CarbonCore/Finder.h for some common resource identifiers.
  56. <!-- end discussion --></p>
  57. <p></p>
  58. <hr>
  59. <!-- headerDoc=instm; uid=//apple_ref/occ/instm/GMResourceFork/addResource:; name=GMResourceFork::addResource: --><a name="//apple_ref/occ/instm/GMResourceFork/addResource:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  60. <h3><a name="addResource:">addResource: </a></h3>
  61. </td></tr></table>
  62. <hr>
  63. <p><!-- begin abstract -->Adds a resource to the resource fork.
  64. <!-- end abstract --></p>
  65. <p></p>
  66. <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/addResource //apple_ref/occ/clm/addResource //apple_ref/occ/intfcm/addResource //apple_ref/occ/intfm/addResource //apple_ref/occ/func/addResource //apple_ref/occ/ftmplt/addResource //apple_ref/occ/defn/addResource //apple_ref/occ/macro/addResource" --><span class="function">addResource</span><!-- /a -->:(<a href="../../../../../Documentation/GMResourceFork/Classes/GMResource_/index.html#//apple_ref/occ/cl/GMResource" logicalPath="//apple_ref/occ/cl/GMResource" target="_top"><span class="type">GMResource</span></a> <span class="type">*</span>)<span class="var">resource</span>; </pre>
  67. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  68. <dl>
  69. <dt><code>resource </code></dt>
  70. <dd>The resource to add.</dd>
  71. </dl>
  72. <h5 class="tight">
  73. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  74. </h5>
  75. <p><!-- begin discussion -->See CarbonCore/Finder.h for some common resource identifiers.
  76. <!-- end discussion --></p>
  77. <p></p>
  78. <hr>
  79. <!-- headerDoc=instm; uid=//apple_ref/occ/instm/GMResourceFork/data; name=GMResourceFork::data --><a name="//apple_ref/occ/instm/GMResourceFork/data"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  80. <h3><a name="data">data</a></h3>
  81. </td></tr></table>
  82. <hr>
  83. <p><!-- begin abstract -->Constucts the raw data for the resource fork.
  84. <!-- end abstract --></p>
  85. <p></p>
  86. <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>)<span class="var">data</span>; </pre>
  87. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value</font></h5>
  88. <p><!-- begin return value -->NSData for the resource fork containing all added resources.
  89. <!-- end return value --></p>
  90. <p></p>
  91. <p>Last Updated: Monday, November 17, 2008
  92. </p>
  93. </body>
  94. </html>