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

http://macfuse.googlecode.com/ · HTML · 117 lines · 117 code · 0 blank · 0 comment · 0 complexity · da03d0741610c4b5bb02f683c4ad38b6 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/GMResource/resourceWithType:resID:name:data:" target="doc">+resourceWithType:resID:name:data: </a></tt></dt>
  12. <dd>Returns an autoreleased resource by specifying components.
  13. </dd>
  14. <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/initWithType:resID:name:data:" target="doc">-initWithType:resID:name:data: </a></tt></dt>
  15. <dd>Initializes a resource by specifying components.
  16. </dd>
  17. <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/resID" target="doc">-resID</a></tt></dt>
  18. <dd>The resource ID </dd>
  19. <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/resType" target="doc">-resType</a></tt></dt>
  20. <dd>The four-char code resource type </dd>
  21. <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/name" target="doc">-name</a></tt></dt>
  22. <dd>The resource name or nil if none </dd>
  23. <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/data" target="doc">-data</a></tt></dt>
  24. <dd>The resource data </dd>
  25. </dl>
  26. <hr>
  27. <!-- headerDoc=clm; uid=//apple_ref/occ/clm/GMResource/resourceWithType:resID:name:data:; name=GMResource::resourceWithType:resID:name:data: --><a name="//apple_ref/occ/clm/GMResource/resourceWithType:resID:name:data:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  28. <h3><a name="resourceWithType:resID:name:data:">resourceWithType:resID:name:data: </a></h3>
  29. </td></tr></table>
  30. <hr>
  31. <p><!-- begin abstract -->Returns an autoreleased resource by specifying components.
  32. <!-- end abstract --></p>
  33. <p></p>
  34. <pre>+ (<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>)<!-- a logicalPath="//apple_ref/occ/instm/resourceWithType //apple_ref/occ/clm/resourceWithType //apple_ref/occ/intfcm/resourceWithType //apple_ref/occ/intfm/resourceWithType //apple_ref/occ/func/resourceWithType //apple_ref/occ/ftmplt/resourceWithType //apple_ref/occ/defn/resourceWithType //apple_ref/occ/macro/resourceWithType" --><span class="function">resourceWithType</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> <span class="comment">// May be nil</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>
  35. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  36. <dl>
  37. <dt><code>resType </code></dt>
  38. <dd>The four-char code for the resource, e.g. 'icns'</dd>
  39. <dt><code>resID </code></dt>
  40. <dd>The ID of the resource, e.g. 256 for webloc 'url' contents</dd>
  41. <dt><code>name </code></dt>
  42. <dd>The name of the resource; may be nil (retained)</dd>
  43. <dt><code>data </code></dt>
  44. <dd>The raw data for the resource (retained)</dd>
  45. </dl>
  46. <h5 class="tight">
  47. <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
  48. </h5>
  49. <p><!-- begin discussion -->See CarbonCore/Finder.h for some common resource identifiers.
  50. <!-- end discussion --></p>
  51. <p></p>
  52. <hr>
  53. <!-- headerDoc=instm; uid=//apple_ref/occ/instm/GMResource/initWithType:resID:name:data:; name=GMResource::initWithType:resID:name:data: --><a name="//apple_ref/occ/instm/GMResource/initWithType:resID:name:data:"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  54. <h3><a name="initWithType:resID:name:data:">initWithType:resID:name:data: </a></h3>
  55. </td></tr></table>
  56. <hr>
  57. <p><!-- begin abstract -->Initializes a resource by specifying components.
  58. <!-- end abstract --></p>
  59. <p></p>
  60. <pre>- (<!-- 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 -->)<!-- a logicalPath="//apple_ref/occ/instm/initWithType //apple_ref/occ/clm/initWithType //apple_ref/occ/intfcm/initWithType //apple_ref/occ/intfm/initWithType //apple_ref/occ/func/initWithType //apple_ref/occ/ftmplt/initWithType //apple_ref/occ/defn/initWithType //apple_ref/occ/macro/initWithType" --><span class="function">initWithType</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> <span class="comment">// May be nil</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>
  61. <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
  62. <dl>
  63. <dt><code>resType </code></dt>
  64. <dd>The four-char code for the resource, e.g. 'icns'</dd>
  65. <dt><code>resID </code></dt>
  66. <dd>The ID of the resource, e.g. 256 for webloc 'url' contents</dd>
  67. <dt><code>name </code></dt>
  68. <dd>The name of the resource; may be nil (retained)</dd>
  69. <dt><code>data </code></dt>
  70. <dd>The raw data for the resource (retained)</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/GMResource/resID; name=GMResource::resID --><a name="//apple_ref/occ/instm/GMResource/resID"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  80. <h3><a name="resID">resID</a></h3>
  81. </td></tr></table>
  82. <hr>
  83. <p><!-- begin abstract -->The resource ID <!-- end abstract --></p>
  84. <p></p>
  85. <pre>- (<!-- 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="var">resID</span>; </pre>
  86. <p></p>
  87. <hr>
  88. <!-- headerDoc=instm; uid=//apple_ref/occ/instm/GMResource/resType; name=GMResource::resType --><a name="//apple_ref/occ/instm/GMResource/resType"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  89. <h3><a name="resType">resType</a></h3>
  90. </td></tr></table>
  91. <hr>
  92. <p><!-- begin abstract -->The four-char code resource type <!-- end abstract --></p>
  93. <p></p>
  94. <pre>- (<!-- 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="var">resType</span>; </pre>
  95. <p></p>
  96. <hr>
  97. <!-- headerDoc=instm; uid=//apple_ref/occ/instm/GMResource/name; name=GMResource::name --><a name="//apple_ref/occ/instm/GMResource/name"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  98. <h3><a name="name">name</a></h3>
  99. </td></tr></table>
  100. <hr>
  101. <p><!-- begin abstract -->The resource name or nil if none <!-- end abstract --></p>
  102. <p></p>
  103. <pre>- (<!-- 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">name</span>; </pre>
  104. <p></p>
  105. <hr>
  106. <!-- headerDoc=instm; uid=//apple_ref/occ/instm/GMResource/data; name=GMResource::data --><a name="//apple_ref/occ/instm/GMResource/data"></a><table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
  107. <h3><a name="data">data</a></h3>
  108. </td></tr></table>
  109. <hr>
  110. <p><!-- begin abstract -->The resource data <!-- end abstract --></p>
  111. <p></p>
  112. <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>
  113. <p></p>
  114. <p>Last Updated: Monday, November 17, 2008
  115. </p>
  116. </body>
  117. </html>