Subversion Repositories TruePreview

[/] [trunk/] [headerdoc/] [TruePreview_h/] [Categories/] [NSObject_TruePreviewObject_/] [index.html] - Blame information for rev 20

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 20 jhriggs
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
2
3
4
<title>NSObject(TruePreviewObject)</title>
5
<meta http-equiv="Content-Type" content="text/html; charset=ascii">
6
<meta name="generator" content="HeaderDoc">
7
<meta name="xcode-display" content="render">
8
<style><!--
9
#tocMenu {
10
    display: block;
11
    position:fixed;
12
    top:0px;
13
    left:0px;
14
    width:210px;
15
    height:100%;
16
    background:transparent;
17
}
18
#bodyText {
19
    margin-left: 210px;
20
}
21
--></style>
22
<script language="JavaScript" type="text/javascript"><!--
23
function hidetoc() {
24
  var origURL = parent.document.URL;
25
  var contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length);
26
  if (contentURL.length == origURL.length) {
27
    jumpPos = origURL.substring(origURL.indexOf('#')+1, origURL.length);
28
  }
29
  if (contentURL == "hidetoc") {
30
    var toc = document.getElementById('tocMenu');
31
    var body = document.getElementById('bodyText');
32
    if (toc && body) {
33
      toc.style.display = 'none';
34
      body.style.marginLeft = '0px';
35
    }
36
  }
37
}
38
--></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>
39
</head>
40
<body bgcolor="#ffffff" onload="hidetoc();">
41
 
42
<!-- headerDoc=cat; uid=//apple_ref/occ/cat/NSObject(TruePreviewObject);  name=NSObject(TruePreviewObject)-->
43
<a name="//apple_ref/occ/cat/NSObject(TruePreviewObject)"></a><div id="tocMenu">
44
<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>
45
</div>
46
<div id="bodyText">
47
<a name="top"></a>
48
<hr>
49
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
50
<h1><a name="NSObject(TruePreviewObject)">NSObject(TruePreviewObject)</a></h1>
51
</td></tr></table>
52
<hr>
53
<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>
54
<div class="declaration_indent">
55
</div>
56
<h5 class="tight">
57
<font face="Lucida Grande,Helvetica,Arial">Discussion</font>
58
</h5>
59
<!-- begin discussion --><p>Adds a method for method swizzling to <code>NSObject</code> instances.
60
<!-- end discussion -->
61
</p>
62
<p></p>
63
<hr>
64
<br><a name="HeaderDoc_groups"><h2>Groups</h2></a>
65
 
66
<h3>Class methods</h3>
67
<div class="group_desc_indent">
68
<p></p>
69
<p></p>
70
</div>
71
<h4>Group members:</h4>
72
<div class="group_indent">
73
<dl>
74
<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>
75
<dd></dd>
76
<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>
77
<dd></dd>
78
</dl>
79
</div>
80
<hr>
81
<a name="HeaderDoc_methods"></a>
82
<h2>Methods</h2>
83
<dl>
84
<dt><tt><a href="index.html#//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewAddAsCategoryToClass:" target="_top">+truePreviewAddAsCategoryToClass:</a></tt></dt>
85
<dd></dd>
86
<dt><tt><a href="index.html#//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewSwizzleMethod:withMethod:isClassMethod:" target="_top">+truePreviewSwizzleMethod:withMethod:isClassMethod:</a></tt></dt>
87
<dd></dd>
88
</dl>
89
<hr>
90
<!-- headerDoc=clm;  uid=//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewAddAsCategoryToClass:;   name=NSObject(TruePreviewObject)::truePreviewAddAsCategoryToClass: --><a name="//apple_ref/occ/clm/NSObject(TruePreviewObject)/truePreviewAddAsCategoryToClass:"></a>
91
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
92
<h3><a name="truePreviewAddAsCategoryToClass:">truePreviewAddAsCategoryToClass:</a></h3>
93
</td></tr></table>
94
<hr>
95
<p></p>
96
<div class="declaration_indent">
97
<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>
98
</div>
99
<h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
100
<div class="param_indent">
101
<dl>
102
<dt><code>inClass</code></dt>
103
<dd><p>The <code>Class</code> to which this class's methods should be added.</p></dd>
104
</dl>
105
</div>
106
<h5 class="tight">
107
<font face="Lucida Grande,Helvetica,Arial">Discussion</font>
108
</h5>
109
<!-- begin discussion --><p>Adds the methods from this class to the specified class.  This is in essence
110
adding a category, but we do it through the objective-c runtime, because of
111
the "hiding" of classes in &gt;= 10.6.
112
<!-- end discussion -->
113
</p>
114
<p></p>
115
<hr>
116
<!-- 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>
117
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
118
<h3><a name="truePreviewSwizzleMethod:withMethod:isClassMethod:">truePreviewSwizzleMethod:withMethod:isClassMethod:</a></h3>
119
</td></tr></table>
120
<hr>
121
<p></p>
122
<div class="declaration_indent">
123
<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>
124
        <!-- 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>
125
</div>
126
<h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters</font></h5>
127
<div class="param_indent">
128
<dl>
129
<dt><code>inOriginalSelector</code></dt>
130
<dd><p>The selector specifying the method being replaced.</p></dd>
131
<dt><code>inReplacementSelector</code></dt>
132
<dd><p>The selector specifying the replacement method.</p></dd>
133
<dt><code>inIsClassMethod</code></dt>
134
<dd><p>The <code>BOOL</code> indicating whether or not the methods being swizzled
135
are class methods.</p></dd>
136
</dl>
137
</div>
138
<h5 class="tight">
139
<font face="Lucida Grande,Helvetica,Arial">Discussion</font>
140
</h5>
141
<!-- begin discussion --><p>Swaps ("swizzles") two methods.  Based on
142
<a href="http://www.cocoadev.com/index.pl?MethodSwizzling" target="_top">http://www.cocoadev.com/index.pl?MethodSwizzling</a>.
143
<!-- end discussion -->
144
</p>
145
<p></p>
146
<p>Last Updated: Friday, October 09, 2009
147
</p>
148
</div>
149
</body>
150
</html>