Subversion Repositories TruePreview

[/] [trunk/] [headerdoc/] [TruePreview_h/] [Categories/] [NSObject_TruePreviewObject_/] [index.html] - Rev 20

Go to most recent revision | Compare with Previous | Blame | Download | View Log

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<html>
<head>
<title>NSObject(TruePreviewObject)</title>
<meta http-equiv="Content-Type" content="text/html; charset=ascii">
<meta name="generator" content="HeaderDoc">
<meta name="xcode-display" content="render">
<style><!--
#tocMenu {
    display: block;
    position:fixed;
    top:0px;
    left:0px;
    width:210px;
    height:100%;
    background:transparent;
}
#bodyText {
    margin-left: 210px;
}
--></style>
<script language="JavaScript" type="text/javascript"><!--
function hidetoc() {
  var origURL = parent.document.URL;
  var contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length);
  if (contentURL.length == origURL.length) {
    jumpPos = origURL.substring(origURL.indexOf('#')+1, origURL.length);
  }
  if (contentURL == "hidetoc") {
    var toc = document.getElementById('tocMenu');
    var body = document.getElementById('bodyText');
    if (toc && body) {
      toc.style.display = 'none';
      body.style.marginLeft = '0px';
    }
  }
}
--></script><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;}.list_indent { margin-left: 40px; }.declaration_indent { margin-left: 40px; }.param_indent { margin-left: 40px; }.group_indent { margin-left: 40px; }.group_desc_indent { margin-left: 20px; }.warning_indent { margin-left: 40px; }.important_indent { margin-left: 40px; }.hd_tocAccess { font-style: italic; font-size: 10px; font-weight: normal; color: #303030; }--></style>
</head>
<body bgcolor="#ffffff" onload="hidetoc();">

<!-- headerDoc=cat; uid=//apple_ref/occ/cat/NSObject(TruePreviewObject);  name=NSObject(TruePreviewObject)-->
<a name="//apple_ref/occ/cat/NSObject(TruePreviewObject)"></a><div id="tocMenu">
<iframe id="toc_content" name="toc_content" src="toc.html" width="210" height="100%" align="left" frameborder="0">This document set is best viewed in a browser that supports iFrames.</iframe>
</div>
<div id="bodyText">
<a name="top"></a>
<hr>
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
<h1><a name="NSObject(TruePreviewObject)">NSObject(TruePreviewObject)</a></h1>
</td></tr></table>
<hr>
<p><b>Version:</b> @(#) $Id: TruePreview.h 17 2009-10-09 12:21:07Z jhriggs $<br><b>Extends&#160;Class:</b> <!-- a logicalPath="//apple_ref/occ/cl/NSObject" -->NSObject<!-- /a --><br><b>Declared In:</b> <a href="../../index.html" target="_top">TruePreview.h</a><br></p>
<div class="declaration_indent">
</div>
<h5 class="tight">
<font face="Lucida Grande,Helvetica,Arial">Discussion</font>
</h5>
<!-- begin discussion --><p>Adds a method for method swizzling to <code>NSObject</code> instances.
<!-- end discussion -->
</p>
<p></p>
<hr>
<br><a name="HeaderDoc_groups"><h2>Groups</h2></a>

<h3>Class methods</h3>
<div class="group_desc_indent">
<p></p>
<p></p>
</div>
<h4>Group members:</h4>
<div class="group_indent">
<dl>
<dt><tt><a href="index.html#//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewAddAsCategoryToClass:" logicalPath="//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewAddAsCategoryToClass:" target="_top">+truePreviewAddAsCategoryToClass:</a></tt></dt>
<dd></dd>
<dt><tt><a href="index.html#//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewSwizzleMethod:withMethod:isClassMethod:" logicalPath="//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewSwizzleMethod:withMethod:isClassMethod:" target="_top">+truePreviewSwizzleMethod:withMethod:isClassMethod:</a></tt></dt>
<dd></dd>
</dl>
</div>
<hr>
<a name="HeaderDoc_methods"></a>
<h2>Methods</h2>
<dl>
<dt><tt><a href="index.html#//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewAddAsCategoryToClass:" target="_top">+truePreviewAddAsCategoryToClass:</a></tt></dt>
<dd></dd>
<dt><tt><a href="index.html#//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewSwizzleMethod:withMethod:isClassMethod:" target="_top">+truePreviewSwizzleMethod:withMethod:isClassMethod:</a></tt></dt>
<dd></dd>
</dl>
<hr>
<!-- headerDoc=clm;  uid=//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewAddAsCategoryToClass:;   name=NSObject(TruePreviewObject)::truePreviewAddAsCategoryToClass: --><a name="//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewAddAsCategoryToClass:"></a>
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
<h3><a name="truePreviewAddAsCategoryToClass:">truePreviewAddAsCategoryToClass:</a></h3>
</td></tr></table>
<hr>
<p></p>
<div class="declaration_indent">
<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/truePreviewAddAsCategoryToClass //apple_ref/occ/clm/truePreviewAddAsCategoryToClass //apple_ref/occ/intfcm/truePreviewAddAsCategoryToClass //apple_ref/occ/intfm/truePreviewAddAsCategoryToClass //apple_ref/occ/func/truePreviewAddAsCategoryToClass //apple_ref/occ/ftmplt/truePreviewAddAsCategoryToClass //apple_ref/occ/defn/truePreviewAddAsCategoryToClass //apple_ref/occ/macro/truePreviewAddAsCategoryToClass" --><span class="function">truePreviewAddAsCategoryToClass</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/Class //apple_ref/occ/tdef/Class //apple_ref/occ/tag/Class //apple_ref/occ/econst/Class //apple_ref/occ/struct/Class //apple_ref/occ/clconst/Class //apple_ref/occ/intf/Class" --><span class="type">Class</span><!-- /a -->)<!-- a logicalPath="//apple_ref/occ/econst/inClass //apple_ref/occ/data/inClass" --><span class="var">inClass</span><!-- /a -->; </pre>
</div>
<h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
<div class="param_indent">
<dl>
<dt><code>inClass</code></dt>
<dd><p>The <code>Class</code> to which this class's methods should be added.</p></dd>
</dl>
</div>
<h5 class="tight">
<font face="Lucida Grande,Helvetica,Arial">Discussion</font>
</h5>
<!-- begin discussion --><p>Adds the methods from this class to the specified class.  This is in essence
adding a category, but we do it through the objective-c runtime, because of
the "hiding" of classes in &gt;= 10.6.
<!-- end discussion -->
</p>
<p></p>
<hr>
<!-- headerDoc=clm;  uid=//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewSwizzleMethod:withMethod:isClassMethod:;   name=NSObject(TruePreviewObject)::truePreviewSwizzleMethod:withMethod:isClassMethod: --><a name="//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewSwizzleMethod:withMethod:isClassMethod:"></a>
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
<h3><a name="truePreviewSwizzleMethod:withMethod:isClassMethod:">truePreviewSwizzleMethod:withMethod:isClassMethod:</a></h3>
</td></tr></table>
<hr>
<p></p>
<div class="declaration_indent">
<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/truePreviewSwizzleMethod //apple_ref/occ/clm/truePreviewSwizzleMethod //apple_ref/occ/intfcm/truePreviewSwizzleMethod //apple_ref/occ/intfm/truePreviewSwizzleMethod //apple_ref/occ/func/truePreviewSwizzleMethod //apple_ref/occ/ftmplt/truePreviewSwizzleMethod //apple_ref/occ/defn/truePreviewSwizzleMethod //apple_ref/occ/macro/truePreviewSwizzleMethod" --><span class="function">truePreviewSwizzleMethod</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/SEL //apple_ref/occ/tdef/SEL //apple_ref/occ/tag/SEL //apple_ref/occ/econst/SEL //apple_ref/occ/struct/SEL //apple_ref/occ/clconst/SEL //apple_ref/occ/intf/SEL" --><span class="type">SEL</span><!-- /a -->)<span class="param">inOriginalSelector</span>
        <!-- a logicalPath="//apple_ref/occ/instm/withMethod //apple_ref/occ/clm/withMethod //apple_ref/occ/intfcm/withMethod //apple_ref/occ/intfm/withMethod //apple_ref/occ/func/withMethod //apple_ref/occ/ftmplt/withMethod //apple_ref/occ/defn/withMethod //apple_ref/occ/macro/withMethod" --><span class="function">withMethod</span><!-- /a -->:(<!-- a logicalPath="//apple_ref/occ/cl/SEL //apple_ref/occ/tdef/SEL //apple_ref/occ/tag/SEL //apple_ref/occ/econst/SEL //apple_ref/occ/struct/SEL //apple_ref/occ/clconst/SEL //apple_ref/occ/intf/SEL" --><span class="type">SEL</span><!-- /a -->)<span class="param">inReplacementSelector</span> <!-- a logicalPath="//apple_ref/occ/instm/isClassMethod //apple_ref/occ/clm/isClassMethod //apple_ref/occ/intfcm/isClassMethod //apple_ref/occ/intfm/isClassMethod //apple_ref/occ/func/isClassMethod //apple_ref/occ/ftmplt/isClassMethod //apple_ref/occ/defn/isClassMethod //apple_ref/occ/macro/isClassMethod" --><span class="function">isClassMethod</span><!-- /a -->:(<!-- 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/econst/inIsClassMethod //apple_ref/occ/data/inIsClassMethod" --><span class="var">inIsClassMethod</span><!-- /a -->; </pre>
</div>
<h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
<div class="param_indent">
<dl>
<dt><code>inOriginalSelector</code></dt>
<dd><p>The selector specifying the method being replaced.</p></dd>
<dt><code>inReplacementSelector</code></dt>
<dd><p>The selector specifying the replacement method.</p></dd>
<dt><code>inIsClassMethod</code></dt>
<dd><p>The <code>BOOL</code> indicating whether or not the methods being swizzled
are class methods.</p></dd>
</dl>
</div>
<h5 class="tight">
<font face="Lucida Grande,Helvetica,Arial">Discussion</font>
</h5>
<!-- begin discussion --><p>Swaps ("swizzles") two methods.  Based on
<a href="http://www.cocoadev.com/index.pl?MethodSwizzling" target="_top">http://www.cocoadev.com/index.pl?MethodSwizzling</a>.
<!-- end discussion -->
</p>
<p></p>
<p>Last Updated: Friday, October 09, 2009
</p>
</div>
</body>
</html>
 

Go to most recent revision | Compare with Previous | Blame | Download | View Log