| 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>TruePreviewPreferenceValueTransformer </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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 40 |
|
|
<body bgcolor="#ffffff" onload="hidetoc();">
|
| 41 |
|
|
|
| 42 |
|
|
<!-- headerDoc=cl; uid=//apple_ref/occ/cl/TruePreviewPreferenceValueTransformer; name=TruePreviewPreferenceValueTransformer-->
|
| 43 |
|
|
<a name="//apple_ref/occ/cl/TruePreviewPreferenceValueTransformer"></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 |
|
|
|
| 46 |
|
|
|
| 47 |
|
|
|
| 48 |
|
|
|
| 49 |
|
|
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
|
| 50 |
|
|
<h1><a name="TruePreviewPreferenceValueTransformer">TruePreviewPreferenceValueTransformer </a></h1>
|
| 51 |
|
|
|
| 52 |
|
|
|
| 53 |
|
|
<p><b>Version: </b> @(#) $Id: TruePreviewPreferencesModule.h 2 2009-06-27 07:02:45Z jhriggs $ <br><b>Superclass: </b> <!-- a logicalPath="//apple_ref/occ/cl/NSValueTransformer" -->NSValueTransformer <!-- /a --><br><b>Declared In: </b> <a href="../../index.html" target="_top">TruePreviewPreferenceValueTransformer.h </a><br></p>
|
| 54 |
|
|
<div class="declaration_indent">
|
| 55 |
|
|
|
| 56 |
|
|
|
| 57 |
|
|
<font face="Lucida Grande,Helvetica,Arial">Discussion </font>
|
| 58 |
|
|
|
| 59 |
|
|
<!-- begin discussion --><p>The <code>TruePreviewPreferenceValueTransformer </code> class is the subclass
|
| 60 |
|
|
of <code>NSValueTransformer </code> that selects the correct radio button in
|
| 61 |
|
|
the TruePreview preferences panel.
|
| 62 |
|
|
<!-- end discussion -->
|
| 63 |
|
|
|
| 64 |
|
|
|
| 65 |
|
|
|
| 66 |
|
|
<br><a name="HeaderDoc_groups"><h2>Groups </h2></a>
|
| 67 |
|
|
|
| 68 |
|
|
<h3>NSValueTransformer instance methods </h3>
|
| 69 |
|
|
<div class="group_desc_indent">
|
| 70 |
|
|
|
| 71 |
|
|
|
| 72 |
|
|
|
| 73 |
|
|
|
| 74 |
|
|
<div class="group_indent">
|
| 75 |
|
|
|
| 76 |
|
|
<dt><tt><a href="index.html#//apple_ref/occ/instm/TruePreviewPreferenceValueTransformer/transformedValue:" logicalPath="//apple_ref/occ/instm/TruePreviewPreferenceValueTransformer/transformedValue:" target="_top">-transformedValue: </a></tt></dt>
|
| 77 |
|
|
|
| 78 |
|
|
|
| 79 |
|
|
|
| 80 |
|
|
|
| 81 |
|
|
<h3>NSValueTransformer class methods </h3>
|
| 82 |
|
|
<div class="group_desc_indent">
|
| 83 |
|
|
|
| 84 |
|
|
|
| 85 |
|
|
|
| 86 |
|
|
|
| 87 |
|
|
<div class="group_indent">
|
| 88 |
|
|
|
| 89 |
|
|
<dt><tt><a href="index.html#//apple_ref/occ/clm/TruePreviewPreferenceValueTransformer/transformedValueClass" logicalPath="//apple_ref/occ/clm/TruePreviewPreferenceValueTransformer/transformedValueClass" target="_top">+transformedValueClass </a></tt></dt>
|
| 90 |
|
|
|
| 91 |
|
|
|
| 92 |
|
|
|
| 93 |
|
|
|
| 94 |
|
|
<a name="HeaderDoc_methods"></a>
|
| 95 |
|
|
|
| 96 |
|
|
|
| 97 |
|
|
<dt><tt><a href="index.html#//apple_ref/occ/clm/TruePreviewPreferenceValueTransformer/transformedValueClass" target="_top">+transformedValueClass </a></tt></dt>
|
| 98 |
|
|
|
| 99 |
|
|
<dt><tt><a href="index.html#//apple_ref/occ/instm/TruePreviewPreferenceValueTransformer/transformedValue:" target="_top">-transformedValue: </a></tt></dt>
|
| 100 |
|
|
|
| 101 |
|
|
|
| 102 |
|
|
|
| 103 |
|
|
<!-- headerDoc=clm; uid=//apple_ref/occ/clm/TruePreviewPreferenceValueTransformer/transformedValueClass; name=TruePreviewPreferenceValueTransformer::transformedValueClass --><a name="//apple_ref/occ/clm/TruePreviewPreferenceValueTransformer/transformedValueClass"></a>
|
| 104 |
|
|
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
|
| 105 |
|
|
<h3><a name="transformedValueClass">transformedValueClass </a></h3>
|
| 106 |
|
|
|
| 107 |
|
|
|
| 108 |
|
|
|
| 109 |
|
|
<div class="declaration_indent">
|
| 110 |
|
|
<pre>+ ( <!-- 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/transformedValueClass //apple_ref/occ/data/transformedValueClass" --><span class="var">transformedValueClass </span><!-- /a -->; </pre>
|
| 111 |
|
|
|
| 112 |
|
|
<h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value </font></h5>
|
| 113 |
|
|
<p><!-- begin return value --><code>[NSNumber class] </code>.
|
| 114 |
|
|
|
| 115 |
|
|
<!-- end return value --></p>
|
| 116 |
|
|
|
| 117 |
|
|
<font face="Lucida Grande,Helvetica,Arial">Discussion </font>
|
| 118 |
|
|
|
| 119 |
|
|
<!-- begin discussion --><p>Returns the class of transformed values for this value transformer
|
| 120 |
|
|
(NSNumber).
|
| 121 |
|
|
<!-- end discussion -->
|
| 122 |
|
|
|
| 123 |
|
|
|
| 124 |
|
|
|
| 125 |
|
|
<!-- headerDoc=instm; uid=//apple_ref/occ/instm/TruePreviewPreferenceValueTransformer/transformedValue:; name=TruePreviewPreferenceValueTransformer::transformedValue: --><a name="//apple_ref/occ/instm/TruePreviewPreferenceValueTransformer/transformedValue:"></a>
|
| 126 |
|
|
<table border="0" cellpadding="2" cellspacing="2" width="300"><tr><td valign="top" height="12" colspan="5">
|
| 127 |
|
|
<h3><a name="transformedValue:">transformedValue: </a></h3>
|
| 128 |
|
|
|
| 129 |
|
|
|
| 130 |
|
|
|
| 131 |
|
|
<div class="declaration_indent">
|
| 132 |
|
|
<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/transformedValue //apple_ref/occ/clm/transformedValue //apple_ref/occ/intfcm/transformedValue //apple_ref/occ/intfm/transformedValue //apple_ref/occ/func/transformedValue //apple_ref/occ/ftmplt/transformedValue //apple_ref/occ/defn/transformedValue //apple_ref/occ/macro/transformedValue" --><span class="function">transformedValue </span><!-- /a -->:( <!-- 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/econst/inValue //apple_ref/occ/data/inValue" --><span class="var">inValue </span><!-- /a -->; </pre>
|
| 133 |
|
|
|
| 134 |
|
|
<h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Parameters </font></h5>
|
| 135 |
|
|
<div class="param_indent">
|
| 136 |
|
|
|
| 137 |
|
|
|
| 138 |
|
|
<dd><p>The value being transformed. </p></dd>
|
| 139 |
|
|
|
| 140 |
|
|
|
| 141 |
|
|
<h5 class="tight"><font face="Lucida Grande,Helvetica,Arial">Return Value </font></h5>
|
| 142 |
|
|
<p><!-- begin return value -->An <code>NSNumber </code> containing the transformed value.
|
| 143 |
|
|
|
| 144 |
|
|
<!-- end return value --></p>
|
| 145 |
|
|
|
| 146 |
|
|
<font face="Lucida Grande,Helvetica,Arial">Discussion </font>
|
| 147 |
|
|
|
| 148 |
|
|
<!-- begin discussion --><p>Returns an <code>NSNumber </code> equivalent to the provided value if the
|
| 149 |
|
|
value is <code>TRUEPREVIEW_DELAY_IMMEDIATE </code>,
|
| 150 |
|
|
|
| 151 |
|
|
<code>TRUEPREVIEW_DELAY_NEVER </code>, or > 0 to
|
| 152 |
|
|
<code>TRUEPREVIEW_DELAY_MAX </code>; otherwise,
|
| 153 |
|
|
<code>TRUEPREVIEW_DELAY_DEFAULT </code> is returned.
|
| 154 |
|
|
<!-- end discussion -->
|
| 155 |
|
|
|
| 156 |
|
|
|
| 157 |
|
|
<p>Last Updated: Friday, October 09, 2009
|
| 158 |
|
|
|
| 159 |
|
|
|
| 160 |
|
|
|
| 161 |
|
|
|