Permalink
Browse files

Removing / rearranging old outdated category code. Adding remote cont…

…rol event to TKWindow

Some of the code that ended up in categories files was used to for
various UI elements. As the framework has evolved, its better that
specific category functionality be placed elsewhere from the category
folder in the framework.
  • Loading branch information...
1 parent 6d50741 commit 153ec7fbaef330451d591eb419c78877fe0f2d1f Devin Ross committed Jun 27, 2012
@@ -0,0 +1,308 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>TKTextViewCell Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <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.0.5 (build 789)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">tapku </a></h1>
+ <a id="developerHome" href="../index.html">Tapku Library</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">TKTextViewCell Class 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">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+ <option value="properties">Properties</option>
+
+ <option value="//api/name/textView">&nbsp;&nbsp;&nbsp;&nbsp;textView</option>
+
+
+
+
+
+
+
+</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>
+
+
+
+
+<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="#properties">Properties</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/textView">textView</a></span></li>
+
+</ul></li>
+
+
+
+
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="TKTextViewCell Class 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">TKTextViewCell Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">UITableViewCell</td>
+</tr><tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">TKTextViewCell.h<br />TKTextViewCell.m</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>A table view cell with a text view.</p>
+ </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/textView">&nbsp;&nbsp;textView</a></code>
+ <span class="tooltip"><p>The text view.</p></span>
+ </span>
+ <span class="task-item-suffix">property</span>
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Properties" name="properties"></a>
+ <h2 class="subtitle subtitle-methods">Properties</h2>
+
+ <div class="section-method">
+ <a name="//api/name/textView" title="textView"></a>
+ <h3 class="subsubtitle method-title">textView</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>The text view.</p>
+ </div>
+
+
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, strong) UITextView *textView</code></div>
+
+
+
+
+
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>The text view.</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">TKTextViewCell.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; 2012 Tapku Library. All rights reserved. (Last updated: 2012-06-21)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
+
+ </div>
+ </div>
+ </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');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ 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>
+</html>
@@ -1,76 +0,0 @@
-//
-// NSDictionaryAdditions.m
-// Created by Devin Ross on 2/23/10.
-//
-/*
-
- tapku.com || http://github.com/devinross/tapkulibrary
-
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation
- files (the "Software"), to deal in the Software without
- restriction, including without limitation the rights to use,
- copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the
- Software is furnished to do so, subject to the following
- conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- OTHER DEALINGS IN THE SOFTWARE.
-
- */
-
-#import "NSDictionary+TKCategory.h"
-
-
-@implementation NSDictionary ( TKCategory )
-
-- (NSString *) formatForHTTP {
- return [self formatForHTTPUsingEncoding:NSASCIIStringEncoding];
-}
-- (NSString *) formatForHTTPUsingEncoding:(NSStringEncoding)inEncoding{
- return [self formatForHTTPUsingEncoding:inEncoding ordering:nil];
-}
-- (NSString *) formatForHTTPUsingEncoding:(NSStringEncoding)inEncoding ordering:(NSArray *)inOrdering{
-
- NSMutableString *s = [NSMutableString stringWithCapacity:256];
- NSEnumerator *e = (nil == inOrdering) ? [self keyEnumerator] : [inOrdering objectEnumerator];
- id key;
- CFStringEncoding cfStrEnc = CFStringConvertNSStringEncodingToEncoding(inEncoding);
-
- while ((key = [e nextObject])){
-
- id keyObject = [self objectForKey: key];
- // conform with rfc 1738 3.3, also escape URL-like characters that might be in the parameters
- NSString *escapedKey = (__bridge_transfer NSString *) CFURLCreateStringByAddingPercentEscapes(NULL, (__bridge CFStringRef) key, NULL, (CFStringRef) @";:@&=/+", cfStrEnc);
- if ([keyObject respondsToSelector: @selector(objectEnumerator)]){
- NSEnumerator *multipleValueEnum = [keyObject objectEnumerator];
- id aValue;
-
- while ((aValue = [multipleValueEnum nextObject])){
- NSString *escapedObject= (__bridge_transfer NSString *) CFURLCreateStringByAddingPercentEscapes( NULL, (__bridge CFStringRef) [aValue description], NULL, (CFStringRef) @";:@&=/+", cfStrEnc);
- [s appendFormat:@"%@=%@&", escapedKey, escapedObject];
- }
-
- }else{
- NSString *escapedObject
- = (__bridge_transfer NSString *) CFURLCreateStringByAddingPercentEscapes(
- NULL, (__bridge CFStringRef) [keyObject description], NULL, (CFStringRef) @";:@&=/+", cfStrEnc);
- [s appendFormat:@"%@=%@&", escapedKey, escapedObject];
- }
- }
- if (![s isEqualToString:@""])
- [s deleteCharactersInRange:NSMakeRange([s length]-1, 1)];
- return s;
-}
-
-@end
Oops, something went wrong.

0 comments on commit 153ec7f

Please sign in to comment.