/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
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
- <html>
- <head>
- <title>Methods</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="generator" content="HeaderDoc">
- <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>
- </head>
- <body bgcolor="#ffffff">
- <a name="top"></a><a name="HeaderDoc_methods"></a><dl>
- <dt><tt><a href="Methods.html#//apple_ref/occ/clm/GMResource/resourceWithType:resID:name:data:" target="doc">+resourceWithType:resID:name:data: </a></tt></dt>
- <dd>Returns an autoreleased resource by specifying components.
- </dd>
- <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/initWithType:resID:name:data:" target="doc">-initWithType:resID:name:data: </a></tt></dt>
- <dd>Initializes a resource by specifying components.
- </dd>
- <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/resID" target="doc">-resID</a></tt></dt>
- <dd>The resource ID </dd>
- <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/resType" target="doc">-resType</a></tt></dt>
- <dd>The four-char code resource type </dd>
- <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/name" target="doc">-name</a></tt></dt>
- <dd>The resource name or nil if none </dd>
- <dt><tt><a href="Methods.html#//apple_ref/occ/instm/GMResource/data" target="doc">-data</a></tt></dt>
- <dd>The resource data </dd>
- </dl>
- <hr>
- <!-- 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">
- <h3><a name="resourceWithType:resID:name:data:">resourceWithType:resID:name:data: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Returns an autoreleased resource by specifying components.
- <!-- end abstract --></p>
- <p></p>
- <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>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>resType </code></dt>
- <dd>The four-char code for the resource, e.g. 'icns'</dd>
- <dt><code>resID </code></dt>
- <dd>The ID of the resource, e.g. 256 for webloc 'url' contents</dd>
- <dt><code>name </code></dt>
- <dd>The name of the resource; may be nil (retained)</dd>
- <dt><code>data </code></dt>
- <dd>The raw data for the resource (retained)</dd>
- </dl>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->See CarbonCore/Finder.h for some common resource identifiers.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- 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">
- <h3><a name="initWithType:resID:name:data:">initWithType:resID:name:data: </a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->Initializes a resource by specifying components.
- <!-- end abstract --></p>
- <p></p>
- <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>
- <h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
- <dl>
- <dt><code>resType </code></dt>
- <dd>The four-char code for the resource, e.g. 'icns'</dd>
- <dt><code>resID </code></dt>
- <dd>The ID of the resource, e.g. 256 for webloc 'url' contents</dd>
- <dt><code>name </code></dt>
- <dd>The name of the resource; may be nil (retained)</dd>
- <dt><code>data </code></dt>
- <dd>The raw data for the resource (retained)</dd>
- </dl>
- <h5 class="tight">
- <font face="Lucida Grande,Helvetica,Arial">Discussion</font>
- </h5>
- <p><!-- begin discussion -->See CarbonCore/Finder.h for some common resource identifiers.
- <!-- end discussion --></p>
- <p></p>
- <hr>
- <!-- 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">
- <h3><a name="resID">resID</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->The resource ID <!-- end abstract --></p>
- <p></p>
- <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>
- <p></p>
- <hr>
- <!-- 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">
- <h3><a name="resType">resType</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->The four-char code resource type <!-- end abstract --></p>
- <p></p>
- <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>
- <p></p>
- <hr>
- <!-- 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">
- <h3><a name="name">name</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->The resource name or nil if none <!-- end abstract --></p>
- <p></p>
- <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>
- <p></p>
- <hr>
- <!-- 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">
- <h3><a name="data">data</a></h3>
- </td></tr></table>
- <hr>
- <p><!-- begin abstract -->The resource data <!-- end abstract --></p>
- <p></p>
- <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>
- <p></p>
- <p>Last Updated: Monday, November 17, 2008
- </p>
- </body>
- </html>