This commit is contained in:
Huy Nguyen
2015-07-13 07:34:08 +07:00
parent 763ff59fcb
commit f1e97cd628
74 changed files with 21834 additions and 17027 deletions

View File

@@ -1,570 +1,444 @@
<!DOCTYPE HTML>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>ASTextNodeDelegate Protocol Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 963)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">AsyncDisplayKit </a></h1>
<a id="developerHome" href="../index.html">Facebook</a>
</div>
<head>
<meta charset="utf-8">
<title>ASTextNodeDelegate Protocol Reference</title>
<link rel="stylesheet" href="../css/style.css">
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
<meta name="generator" content="appledoc 2.2.1 (build 1333)">
</head>
<body class="appledoc">
<header>
<div class="container" class="hide-in-xcode">
<div id="title" role="banner">
<h1 class="hideInXcode">ASTextNodeDelegate Protocol Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<h1 id="library-title">
<a href="../index.html">AsyncDisplayKit </a>
</h1>
<p id="developer-home">
<a href="../index.html">Facebook</a>
</p>
</div>
</header>
<aside>
<div class="container">
<nav>
<ul id="header-buttons" role="toolbar">
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
<li id="on-this-page" role="navigation">
<label>
On This Page
<div class="chevron">
<div class="chevy chevron-left"></div>
<div class="chevy chevron-right"></div>
</div>
<select id="jump-to">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/textNode:longPressedLinkAttribute:value:atPoint:textRange:">&nbsp;&nbsp;&nbsp;&nbsp;- textNode:longPressedLinkAttribute:value:atPoint:textRange:</option>
<option value="//api/name/textNode:shouldHighlightLinkAttribute:value:atPoint:">&nbsp;&nbsp;&nbsp;&nbsp;- textNode:shouldHighlightLinkAttribute:value:atPoint:</option>
<option value="//api/name/textNode:shouldLongPressLinkAttribute:value:atPoint:">&nbsp;&nbsp;&nbsp;&nbsp;- textNode:shouldLongPressLinkAttribute:value:atPoint:</option>
<option value="//api/name/textNode:tappedLinkAttribute:value:atPoint:textRange:">&nbsp;&nbsp;&nbsp;&nbsp;- textNode:tappedLinkAttribute:value:atPoint:textRange:</option>
<optgroup label="Instance Methods">
<option value="//api/name/textNode:longPressedLinkAttribute:value:atPoint:textRange:">- textNode:longPressedLinkAttribute:value:atPoint:textRange:</option>
<option value="//api/name/textNode:shouldHighlightLinkAttribute:value:atPoint:">- textNode:shouldHighlightLinkAttribute:value:atPoint:</option>
<option value="//api/name/textNode:shouldLongPressLinkAttribute:value:atPoint:">- textNode:shouldLongPressLinkAttribute:value:atPoint:</option>
<option value="//api/name/textNode:tappedLinkAttribute:value:atPoint:textRange:">- textNode:tappedLinkAttribute:value:atPoint:textRange:</option>
</optgroup>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
</label>
</li>
</ul>
</nav>
</div>
</aside>
<article>
<div id="overview_contents" class="container">
<div id="content">
<main role="main">
<h1 class="title">ASTextNodeDelegate Protocol Reference</h1>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/textNode:longPressedLinkAttribute:value:atPoint:textRange:">textNode:longPressedLinkAttribute:value:atPoint:textRange:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/textNode:shouldHighlightLinkAttribute:value:atPoint:">textNode:shouldHighlightLinkAttribute:value:atPoint:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/textNode:shouldLongPressLinkAttribute:value:atPoint:">textNode:shouldLongPressLinkAttribute:value:atPoint:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/textNode:tappedLinkAttribute:value:atPoint:textRange:">textNode:tappedLinkAttribute:value:atPoint:textRange:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="ASTextNodeDelegate Protocol Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">ASTextNodeDelegate Protocol Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value">NSObject</td>
<th>Conforms to</th>
<td>NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">ASTextNode.h</td>
<th>Declared in</th>
<td>ASTextNode.h</td>
</tr>
</tbody></table></div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/textNode:tappedLinkAttribute:value:atPoint:textRange:">&ndash;&nbsp;textNode:tappedLinkAttribute:value:atPoint:textRange:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/textNode:longPressedLinkAttribute:value:atPoint:textRange:">&ndash;&nbsp;textNode:longPressedLinkAttribute:value:atPoint:textRange:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/textNode:shouldHighlightLinkAttribute:value:atPoint:">&ndash;&nbsp;textNode:shouldHighlightLinkAttribute:value:atPoint:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/textNode:shouldLongPressLinkAttribute:value:atPoint:">&ndash;&nbsp;textNode:shouldLongPressLinkAttribute:value:atPoint:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Instance Methods" name="instance_methods"></a>
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
<div class="section-method">
<a name="//api/name/textNode:longPressedLinkAttribute:value:atPoint:textRange:" title="textNode:longPressedLinkAttribute:value:atPoint:textRange:"></a>
<h3 class="subsubtitle method-title">textNode:longPressedLinkAttribute:value:atPoint:textRange:</h3>
<div class="method-subsection brief-description">
<p>Indicates to the delegate that a link was tapped within a text node.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)textNode:(id)<em>textNode</em> longPressedLinkAttribute:(id)<em>attribute</em> value:(id)<em>value</em> atPoint:(id)<em>point</em> textRange:(id)<em>textRange</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>textNode</em></dt>
<dd><p>The ASTextNode containing the link that was tapped.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>attribute</em></dt>
<dd><p>The attribute that was tapped. Will not be nil.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>value</em></dt>
<dd><p>The value of the tapped attribute.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>point</em></dt>
<dd><p>The point within textNode, in textNode&rsquo;s coordinate system, that was tapped.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>textRange</em></dt>
<dd><p>The range of highlighted text.</p></dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">ASTextNode.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/textNode:shouldHighlightLinkAttribute:value:atPoint:" title="textNode:shouldHighlightLinkAttribute:value:atPoint:"></a>
<h3 class="subsubtitle method-title">textNode:shouldHighlightLinkAttribute:value:atPoint:</h3>
<div class="method-subsection brief-description">
<p>Indicates to the text node if an attribute should be considered a link.</p>
</div>
<div class="method-subsection method-declaration"><code>- (BOOL)textNode:(id)<em>textNode</em> shouldHighlightLinkAttribute:(id)<em>attribute</em> value:(id)<em>value</em> atPoint:(id)<em>point</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>textNode</em></dt>
<dd><p>The text node containing the entity attribute.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>attribute</em></dt>
<dd><p>The attribute that was tapped. Will not be nil.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>value</em></dt>
<dd><p>The value of the tapped attribute.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>point</em></dt>
<dd><p>The point within textNode, in textNode&rsquo;s coordinate system, that was touched to trigger a highlight.</p></dd>
</dl>
</div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>YES if the entity attribute should be a link, NO otherwise.</p>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>If not implemented, the default value is NO.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">ASTextNode.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/textNode:shouldLongPressLinkAttribute:value:atPoint:" title="textNode:shouldLongPressLinkAttribute:value:atPoint:"></a>
<h3 class="subsubtitle method-title">textNode:shouldLongPressLinkAttribute:value:atPoint:</h3>
<div class="method-subsection brief-description">
<p>Indicates to the text node if an attribute is a valid long-press target</p>
</div>
<div class="method-subsection method-declaration"><code>- (BOOL)textNode:(id)<em>textNode</em> shouldLongPressLinkAttribute:(id)<em>attribute</em> value:(id)<em>value</em> atPoint:(id)<em>point</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>textNode</em></dt>
<dd><p>The text node containing the entity attribute.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>attribute</em></dt>
<dd><p>The attribute that was tapped. Will not be nil.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>value</em></dt>
<dd><p>The value of the tapped attribute.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>point</em></dt>
<dd><p>The point within textNode, in textNode&rsquo;s coordinate system, that was long-pressed.</p></dd>
</dl>
</div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>YES if the entity attribute should be treated as a long-press target, NO otherwise.</p>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>If not implemented, the default value is NO.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">ASTextNode.h</code><br />
</div>
</div>
<div class="section-method">
<div class="task-list">
<div class="section-method">
<a name="//api/name/textNode:tappedLinkAttribute:value:atPoint:textRange:" title="textNode:tappedLinkAttribute:value:atPoint:textRange:"></a>
<h3 class="subsubtitle method-title">textNode:tappedLinkAttribute:value:atPoint:textRange:</h3>
<div class="method-subsection brief-description">
<p>Indicates to the delegate that a link was tapped within a text node.</p>
</div>
<h3 class="method-title"><code><a href="#//api/name/textNode:tappedLinkAttribute:value:atPoint:textRange:">&ndash;&nbsp;textNode:tappedLinkAttribute:value:atPoint:textRange:</a></code>
</h3>
<div class="method-subsection method-declaration"><code>- (void)textNode:(id)<em>textNode</em> tappedLinkAttribute:(id)<em>attribute</em> value:(id)<em>value</em> atPoint:(id)<em>point</em> textRange:(id)<em>textRange</em></code></div>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>textNode</em></dt>
<dd><p>The ASTextNode containing the link that was tapped.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>attribute</em></dt>
<dd><p>The attribute that was tapped. Will not be nil.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>value</em></dt>
<dd><p>The value of the tapped attribute.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>point</em></dt>
<dd><p>The point within textNode, in textNode&rsquo;s coordinate system, that was tapped.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>textRange</em></dt>
<dd><p>The range of highlighted text.</p></dd>
</dl>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">ASTextNode.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2015 Facebook. All rights reserved. (Last updated: 2015-01-21)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
</div>
</div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>Indicates to the delegate that a link was tapped within a text node.</p>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
<div class="method-subsection method-declaration"><code>- (void)textNode:(ASTextNode *)<em>textNode</em> tappedLinkAttribute:(NSString *)<em>attribute</em> value:(id)<em>value</em> atPoint:(CGPoint)<em>point</em> textRange:(NSRange)<em>textRange</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<table class="argument-def parameter-def">
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
<tr>
<th scope="row" class="argument-name"><code>textNode</code></th>
<td><p>The ASTextNode containing the link that was tapped.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>attribute</code></th>
<td><p>The attribute that was tapped. Will not be nil.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>value</code></th>
<td><p>The value of the tapped attribute.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>point</code></th>
<td><p>The point within textNode, in textNode&rsquo;s coordinate system, that was tapped.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>textRange</code></th>
<td><p>The range of highlighted text.</p></td>
</tr>
</table>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ASTextNode.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/textNode:longPressedLinkAttribute:value:atPoint:textRange:" title="textNode:longPressedLinkAttribute:value:atPoint:textRange:"></a>
<h3 class="method-title"><code><a href="#//api/name/textNode:longPressedLinkAttribute:value:atPoint:textRange:">&ndash;&nbsp;textNode:longPressedLinkAttribute:value:atPoint:textRange:</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>Indicates to the delegate that a link was tapped within a text node.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)textNode:(ASTextNode *)<em>textNode</em> longPressedLinkAttribute:(NSString *)<em>attribute</em> value:(id)<em>value</em> atPoint:(CGPoint)<em>point</em> textRange:(NSRange)<em>textRange</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<table class="argument-def parameter-def">
<tr>
<th scope="row" class="argument-name"><code>textNode</code></th>
<td><p>The ASTextNode containing the link that was tapped.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>attribute</code></th>
<td><p>The attribute that was tapped. Will not be nil.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>value</code></th>
<td><p>The value of the tapped attribute.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>point</code></th>
<td><p>The point within textNode, in textNode&rsquo;s coordinate system, that was tapped.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>textRange</code></th>
<td><p>The range of highlighted text.</p></td>
</tr>
</table>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ASTextNode.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/textNode:shouldHighlightLinkAttribute:value:atPoint:" title="textNode:shouldHighlightLinkAttribute:value:atPoint:"></a>
<h3 class="method-title"><code><a href="#//api/name/textNode:shouldHighlightLinkAttribute:value:atPoint:">&ndash;&nbsp;textNode:shouldHighlightLinkAttribute:value:atPoint:</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>Indicates to the text node if an attribute should be considered a link.</p>
</div>
<div class="method-subsection method-declaration"><code>- (BOOL)textNode:(ASTextNode *)<em>textNode</em> shouldHighlightLinkAttribute:(NSString *)<em>attribute</em> value:(id)<em>value</em> atPoint:(CGPoint)<em>point</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<table class="argument-def parameter-def">
<tr>
<th scope="row" class="argument-name"><code>textNode</code></th>
<td><p>The text node containing the entity attribute.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>attribute</code></th>
<td><p>The attribute that was tapped. Will not be nil.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>value</code></th>
<td><p>The value of the tapped attribute.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>point</code></th>
<td><p>The point within textNode, in textNode&rsquo;s coordinate system, that was touched to trigger a highlight.</p></td>
</tr>
</table>
</div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>YES if the entity attribute should be a link, NO otherwise.</p>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>If not implemented, the default value is NO.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ASTextNode.h</code></p>
</div>
</div>
</div>
</div><div class="section-method">
<a name="//api/name/textNode:shouldLongPressLinkAttribute:value:atPoint:" title="textNode:shouldLongPressLinkAttribute:value:atPoint:"></a>
<h3 class="method-title"><code><a href="#//api/name/textNode:shouldLongPressLinkAttribute:value:atPoint:">&ndash;&nbsp;textNode:shouldLongPressLinkAttribute:value:atPoint:</a></code>
</h3>
<div class="method-info">
<div class="pointy-thing"></div>
<div class="method-info-container">
<div class="method-subsection brief-description">
<p>Indicates to the text node if an attribute is a valid long-press target</p>
</div>
<div class="method-subsection method-declaration"><code>- (BOOL)textNode:(ASTextNode *)<em>textNode</em> shouldLongPressLinkAttribute:(NSString *)<em>attribute</em> value:(id)<em>value</em> atPoint:(CGPoint)<em>point</em></code></div>
<div class="method-subsection arguments-section parameters">
<h4 class="method-subtitle parameter-title">Parameters</h4>
<table class="argument-def parameter-def">
<tr>
<th scope="row" class="argument-name"><code>textNode</code></th>
<td><p>The text node containing the entity attribute.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>attribute</code></th>
<td><p>The attribute that was tapped. Will not be nil.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>value</code></th>
<td><p>The value of the tapped attribute.</p></td>
</tr>
<tr>
<th scope="row" class="argument-name"><code>point</code></th>
<td><p>The point within textNode, in textNode&rsquo;s coordinate system, that was long-pressed.</p></td>
</tr>
</table>
</div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>YES if the entity attribute should be treated as a long-press target, NO otherwise.</p>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>If not implemented, the default value is NO.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<p><code class="declared-in-ref">ASTextNode.h</code></p>
</div>
</div>
</div>
</div>
</div>
</div>
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</main>
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2015 Facebook. All rights reserved. Updated: 2015-07-13</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
</div>
</footer>
</div>
</div>
</article>
<script src="../js/script.js"></script>
</body>
</html>