motion-hpple 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/Gemfile.lock +52 -0
  2. data/README.md +1 -7
  3. data/Rakefile +16 -1
  4. data/lib/motion-hpple.rb +2 -4
  5. data/lib/motion-hpple/version.rb +1 -1
  6. data/motion-hpple.gemspec +1 -0
  7. data/vendor/Podfile.lock +11 -0
  8. data/vendor/{hpple → Pods/.build/Pods}/TFHpple.h +1 -1
  9. data/vendor/{hpple → Pods/.build/Pods}/TFHppleElement.h +7 -7
  10. data/vendor/Pods/.build/Pods/XPathQuery.h +10 -0
  11. data/vendor/Pods/.build/libPods.a +0 -0
  12. data/vendor/Pods/BuildHeaders/hpple/TFHpple.h +54 -0
  13. data/vendor/Pods/BuildHeaders/hpple/TFHppleElement.h +68 -0
  14. data/vendor/Pods/BuildHeaders/hpple/XPathQuery.h +10 -0
  15. data/vendor/Pods/Documentation/hpple/docset-installed.txt +4 -0
  16. data/vendor/Pods/Documentation/hpple/docset/Contents/Info.plist +39 -0
  17. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/Classes/TFHpple.html +470 -0
  18. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/Classes/TFHppleElement.html +470 -0
  19. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/css/styles.css +584 -0
  20. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/css/stylesPrint.css +22 -0
  21. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/hierarchy.html +72 -0
  22. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/button_bar_background.png +0 -0
  23. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/disclosure.png +0 -0
  24. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/disclosure_open.png +0 -0
  25. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/library_background.png +0 -0
  26. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/title_background.png +0 -0
  27. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/index.html +135 -0
  28. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Nodes.xml +39 -0
  29. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Tokens1.xml +125 -0
  30. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Tokens2.xml +180 -0
  31. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/docSet.dsidx +0 -0
  32. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/docSet.mom +0 -0
  33. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/docSet.skidx +0 -0
  34. data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/docSet.toc +0 -0
  35. data/vendor/Pods/Documentation/hpple/html/Classes/TFHpple.html +470 -0
  36. data/vendor/Pods/Documentation/hpple/html/Classes/TFHppleElement.html +470 -0
  37. data/vendor/Pods/Documentation/hpple/html/css/styles.css +584 -0
  38. data/vendor/Pods/Documentation/hpple/html/css/stylesPrint.css +22 -0
  39. data/vendor/Pods/Documentation/hpple/html/hierarchy.html +72 -0
  40. data/vendor/Pods/Documentation/hpple/html/img/button_bar_background.png +0 -0
  41. data/vendor/Pods/Documentation/hpple/html/img/disclosure.png +0 -0
  42. data/vendor/Pods/Documentation/hpple/html/img/disclosure_open.png +0 -0
  43. data/vendor/Pods/Documentation/hpple/html/img/library_background.png +0 -0
  44. data/vendor/Pods/Documentation/hpple/html/img/title_background.png +0 -0
  45. data/vendor/Pods/Documentation/hpple/html/index.html +135 -0
  46. data/vendor/Pods/Headers/hpple/TFHpple.h +54 -0
  47. data/vendor/Pods/Headers/hpple/TFHppleElement.h +68 -0
  48. data/vendor/Pods/Headers/hpple/XPathQuery.h +10 -0
  49. data/vendor/Pods/Pods-Acknowledgements.markdown +29 -0
  50. data/vendor/Pods/Pods-Acknowledgements.plist +59 -0
  51. data/vendor/Pods/Pods-prefix.pch +3 -0
  52. data/vendor/Pods/Pods-resources.sh +19 -0
  53. data/vendor/Pods/Pods.bridgesupport +104 -0
  54. data/vendor/Pods/Pods.xcconfig +7 -0
  55. data/vendor/Pods/Pods.xcodeproj/project.pbxproj +633 -0
  56. data/vendor/Pods/PodsDummy_Pods.m +4 -0
  57. data/vendor/Pods/build-iPhoneSimulator/libPods.a +0 -0
  58. data/vendor/Pods/hpple/LICENSE.txt +22 -0
  59. data/vendor/Pods/hpple/README.markdown +50 -0
  60. data/vendor/Pods/hpple/TFHpple.h +54 -0
  61. data/vendor/Pods/hpple/TFHpple.m +102 -0
  62. data/vendor/Pods/hpple/TFHppleElement.h +68 -0
  63. data/vendor/Pods/hpple/TFHppleElement.m +114 -0
  64. data/vendor/Pods/hpple/XPathQuery.h +10 -0
  65. data/vendor/Pods/hpple/XPathQuery.m +197 -0
  66. metadata +86 -8
  67. data/vendor/hpple/hpple.bridgesupport +0 -78
  68. data/vendor/hpple/libHpple.a +0 -0
@@ -0,0 +1,52 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ motion-hpple (0.3.0)
5
+ motion-cocoapods (~> 1.2.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activesupport (3.2.8)
11
+ i18n (~> 0.6)
12
+ multi_json (~> 1.0)
13
+ addressable (2.3.2)
14
+ cocoapods (0.15.2)
15
+ activesupport (~> 3.2.6)
16
+ colored (~> 1.2)
17
+ escape (~> 0.0.4)
18
+ faraday (~> 0.8.1)
19
+ json (~> 1.7.3)
20
+ octokit (~> 1.7)
21
+ open4 (~> 1.3.0)
22
+ rake (~> 0.9.0)
23
+ xcodeproj (~> 0.3.5)
24
+ colored (1.2)
25
+ escape (0.0.4)
26
+ faraday (0.8.4)
27
+ multipart-post (~> 1.1)
28
+ faraday_middleware (0.8.8)
29
+ faraday (>= 0.7.4, < 0.9)
30
+ hashie (1.2.0)
31
+ i18n (0.6.1)
32
+ json (1.7.5)
33
+ motion-cocoapods (1.2.1)
34
+ cocoapods (>= 0.14.0)
35
+ multi_json (1.3.6)
36
+ multipart-post (1.1.5)
37
+ octokit (1.18.0)
38
+ addressable (~> 2.2)
39
+ faraday (~> 0.8)
40
+ faraday_middleware (~> 0.8)
41
+ hashie (~> 1.2)
42
+ multi_json (~> 1.3)
43
+ open4 (1.3.0)
44
+ rake (0.9.2.2)
45
+ xcodeproj (0.3.5)
46
+ activesupport (~> 3.2.6)
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ motion-hpple!
data/README.md CHANGED
@@ -18,16 +18,10 @@ Add following to your Rakefile:
18
18
  ```ruby
19
19
  $:.unshift("/Library/RubyMotion/lib")
20
20
  require 'motion/project'
21
- require 'motion-cocoapods'
22
- require 'motion-tidy'
21
+ require 'motion-hpple'
23
22
 
24
23
  Motion::Project::App.setup do |app|
25
24
  app.name = 'sample'
26
-
27
- # Only needed if you have not already specifying pods dependency
28
- app.pods do
29
- dependency 'CTidy', '>= 0.2.0'
30
- end
31
25
  end
32
26
  ```
33
27
 
data/Rakefile CHANGED
@@ -1 +1,16 @@
1
- require "bundler/gem_tasks"
1
+ require "bundler/gem_tasks"
2
+
3
+ $:.unshift("/Library/RubyMotion/lib")
4
+ require 'motion/project'
5
+ require 'rubygems'
6
+ require 'bundler'
7
+ Bundler.require :default
8
+ require 'motion-cocoapods'
9
+
10
+ Motion::Project::App.setup do |app|
11
+ app.name = 'MotionHpple'
12
+ app.deployment_target = '5.0'
13
+ app.pods do
14
+ pod 'hpple', '~> 0.1.0'
15
+ end
16
+ end
@@ -8,8 +8,6 @@ Motion::Project::App.setup do |app|
8
8
  Dir.glob(File.join(File.dirname(__FILE__), 'motion-hpple/*.rb')).each do |file|
9
9
  app.files.unshift(file)
10
10
  end
11
- app.libs << '/usr/lib/libxml2.2.dylib'
12
-
13
- hpple_vendor = File.expand_path(File.join(File.dirname(__FILE__), '../vendor/hpple'))
14
- app.vendor_project(hpple_vendor, :static)
11
+ app.pods ||= Motion::Project::CocoaPods.new(app)
12
+ app.pods.pod 'hpple', '~> 0.1.0'
15
13
  end
@@ -1,3 +1,3 @@
1
1
  module Hpple
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
@@ -13,4 +13,5 @@ Gem::Specification.new do |gem|
13
13
  gem.name = "motion-hpple"
14
14
  gem.require_paths = ["lib"]
15
15
  gem.version = Hpple::VERSION
16
+ gem.add_runtime_dependency 'motion-cocoapods', '~> 1.2.1'
16
17
  end
@@ -0,0 +1,11 @@
1
+
2
+ PODS:
3
+ - hpple (0.1.0)
4
+
5
+ DEPENDENCIES:
6
+ - hpple (~> 0.1.0)
7
+
8
+ SPEC CHECKSUMS:
9
+ hpple: c5b466a0ec1f2f83fd179a6c9743f33fbc10f146
10
+
11
+ COCOAPODS: 0.15.2
@@ -49,6 +49,6 @@
49
49
  - (NSArray *) searchWithXPathQuery:(NSString *)xPathOrCSS;
50
50
  - (TFHppleElement *) peekAtSearchWithXPathQuery:(NSString *)xPathOrCSS;
51
51
 
52
- @property (retain) NSData * data;
52
+ @property (nonatomic, strong, readonly) NSData * data;
53
53
 
54
54
  @end
@@ -34,7 +34,7 @@
34
34
  @private
35
35
 
36
36
  NSDictionary * node;
37
- TFHppleElement *parent;
37
+ __unsafe_unretained TFHppleElement *parent;
38
38
  }
39
39
 
40
40
  - (id) initWithNode:(NSDictionary *) theNode;
@@ -42,24 +42,24 @@
42
42
  + (TFHppleElement *) hppleElementWithNode:(NSDictionary *) theNode;
43
43
 
44
44
  // Returns this tag's innerHTML content.
45
- @property (nonatomic, readonly) NSString *content;
45
+ @property (nonatomic, copy, readonly) NSString *content;
46
46
 
47
47
  // Returns the name of the current tag, such as "h3".
48
- @property (nonatomic, readonly) NSString *tagName;
48
+ @property (nonatomic, copy, readonly) NSString *tagName;
49
49
 
50
50
  // Returns tag attributes with name as key and content as value.
51
51
  // href = 'http://peepcode.com'
52
52
  // class = 'highlight'
53
- @property (nonatomic, readonly) NSDictionary *attributes;
53
+ @property (nonatomic, strong, readonly) NSDictionary *attributes;
54
54
 
55
55
  // Returns the children of a given node
56
- @property (nonatomic, readonly) NSArray *children;
56
+ @property (nonatomic, strong, readonly) NSArray *children;
57
57
 
58
58
  // Returns the first child of a given node
59
- @property (nonatomic, readonly) TFHppleElement *firstChild;
59
+ @property (nonatomic, strong, readonly) TFHppleElement *firstChild;
60
60
 
61
61
  // the parent of a node
62
- @property (nonatomic, retain, readonly) TFHppleElement *parent;
62
+ @property (nonatomic, unsafe_unretained, readonly) TFHppleElement *parent;
63
63
 
64
64
  // Provides easy access to the content of a specific attribute,
65
65
  // such as 'href' or 'class'.
@@ -0,0 +1,10 @@
1
+ //
2
+ // XPathQuery.h
3
+ // FuelFinder
4
+ //
5
+ // Created by Matt Gallagher on 4/08/08.
6
+ // Copyright 2008 __MyCompanyName__. All rights reserved.
7
+ //
8
+
9
+ NSArray *PerformHTMLXPathQuery(NSData *document, NSString *query);
10
+ NSArray *PerformXMLXPathQuery(NSData *document, NSString *query);
@@ -0,0 +1,54 @@
1
+ //
2
+ // TFHpple.h
3
+ // Hpple
4
+ //
5
+ // Created by Geoffrey Grosenbach on 1/31/09.
6
+ //
7
+ // Copyright (c) 2009 Topfunky Corporation, http://topfunky.com
8
+ //
9
+ // MIT LICENSE
10
+ //
11
+ // Permission is hereby granted, free of charge, to any person obtaining
12
+ // a copy of this software and associated documentation files (the
13
+ // "Software"), to deal in the Software without restriction, including
14
+ // without limitation the rights to use, copy, modify, merge, publish,
15
+ // distribute, sublicense, and/or sell copies of the Software, and to
16
+ // permit persons to whom the Software is furnished to do so, subject to
17
+ // the following conditions:
18
+ //
19
+ // The above copyright notice and this permission notice shall be
20
+ // included in all copies or substantial portions of the Software.
21
+ //
22
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
+ // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25
+ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26
+ // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27
+ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
+
30
+
31
+ #import <Foundation/Foundation.h>
32
+
33
+ #import "TFHppleElement.h"
34
+
35
+ @interface TFHpple : NSObject {
36
+ @private
37
+ NSData * data;
38
+ BOOL isXML;
39
+ }
40
+
41
+ - (id) initWithData:(NSData *)theData isXML:(BOOL)isDataXML;
42
+ - (id) initWithXMLData:(NSData *)theData;
43
+ - (id) initWithHTMLData:(NSData *)theData;
44
+
45
+ + (TFHpple *) hppleWithData:(NSData *)theData isXML:(BOOL)isDataXML;
46
+ + (TFHpple *) hppleWithXMLData:(NSData *)theData;
47
+ + (TFHpple *) hppleWithHTMLData:(NSData *)theData;
48
+
49
+ - (NSArray *) searchWithXPathQuery:(NSString *)xPathOrCSS;
50
+ - (TFHppleElement *) peekAtSearchWithXPathQuery:(NSString *)xPathOrCSS;
51
+
52
+ @property (nonatomic, strong, readonly) NSData * data;
53
+
54
+ @end
@@ -0,0 +1,68 @@
1
+ //
2
+ // TFHppleElement.h
3
+ // Hpple
4
+ //
5
+ // Created by Geoffrey Grosenbach on 1/31/09.
6
+ //
7
+ // Copyright (c) 2009 Topfunky Corporation, http://topfunky.com
8
+ //
9
+ // MIT LICENSE
10
+ //
11
+ // Permission is hereby granted, free of charge, to any person obtaining
12
+ // a copy of this software and associated documentation files (the
13
+ // "Software"), to deal in the Software without restriction, including
14
+ // without limitation the rights to use, copy, modify, merge, publish,
15
+ // distribute, sublicense, and/or sell copies of the Software, and to
16
+ // permit persons to whom the Software is furnished to do so, subject to
17
+ // the following conditions:
18
+ //
19
+ // The above copyright notice and this permission notice shall be
20
+ // included in all copies or substantial portions of the Software.
21
+ //
22
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23
+ // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25
+ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26
+ // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27
+ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28
+ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
+
30
+ #import <Foundation/Foundation.h>
31
+
32
+
33
+ @interface TFHppleElement : NSObject {
34
+ @private
35
+
36
+ NSDictionary * node;
37
+ __unsafe_unretained TFHppleElement *parent;
38
+ }
39
+
40
+ - (id) initWithNode:(NSDictionary *) theNode;
41
+
42
+ + (TFHppleElement *) hppleElementWithNode:(NSDictionary *) theNode;
43
+
44
+ // Returns this tag's innerHTML content.
45
+ @property (nonatomic, copy, readonly) NSString *content;
46
+
47
+ // Returns the name of the current tag, such as "h3".
48
+ @property (nonatomic, copy, readonly) NSString *tagName;
49
+
50
+ // Returns tag attributes with name as key and content as value.
51
+ // href = 'http://peepcode.com'
52
+ // class = 'highlight'
53
+ @property (nonatomic, strong, readonly) NSDictionary *attributes;
54
+
55
+ // Returns the children of a given node
56
+ @property (nonatomic, strong, readonly) NSArray *children;
57
+
58
+ // Returns the first child of a given node
59
+ @property (nonatomic, strong, readonly) TFHppleElement *firstChild;
60
+
61
+ // the parent of a node
62
+ @property (nonatomic, unsafe_unretained, readonly) TFHppleElement *parent;
63
+
64
+ // Provides easy access to the content of a specific attribute,
65
+ // such as 'href' or 'class'.
66
+ - (NSString *) objectForKey:(NSString *) theKey;
67
+
68
+ @end
@@ -0,0 +1,10 @@
1
+ //
2
+ // XPathQuery.h
3
+ // FuelFinder
4
+ //
5
+ // Created by Matt Gallagher on 4/08/08.
6
+ // Copyright 2008 __MyCompanyName__. All rights reserved.
7
+ //
8
+
9
+ NSArray *PerformHTMLXPathQuery(NSData *document, NSString *query);
10
+ NSArray *PerformXMLXPathQuery(NSData *document, NSString *query);
@@ -0,0 +1,4 @@
1
+ Documentation set was installed to Xcode!
2
+
3
+ Path: /Users/siuying/Library/Developer/Shared/Documentation/DocSets/org.cocoapods.hpple-0.1.0.docset
4
+ Time: 2012-11-20 05:35:12 +0000
@@ -0,0 +1,39 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleIdentifier</key>
8
+ <string>org.cocoapods.hpple-0.1.0</string>
9
+ <key>CFBundleName</key>
10
+ <string>hpple 0.1.0 Documentation</string>
11
+ <key>CFBundleShortVersionString</key>
12
+ <string>1.0</string>
13
+ <key>CFBundleVersion</key>
14
+ <string>1.0</string>
15
+
16
+
17
+ <key>DocSetDescription</key>
18
+ <string>Hpple: A nice Objective-C wrapper on the XPathQuery library for parsing HTML.
19
+ Inspired by why the lucky stiff&apos;s Hpricot.
20
+
21
+ * Easy searching by XPath (CSS selectors are planned)
22
+ * Parses HTML (XML coming soon)
23
+ * Easy access to tag content, name, and attributes
24
+ </string>
25
+
26
+ <key>DocSetFeedName</key>
27
+ <string>hpple 0.1.0 Documentation</string>
28
+
29
+ <key>DocSetMinimumXcodeVersion</key>
30
+ <string>3.0</string>
31
+
32
+ <key>DocSetPublisherIdentifier</key>
33
+ <string>org.cocoapods.documentation</string>
34
+ <key>DocSetPublisherName</key>
35
+ <string>Geoffrey Grosenbach</string>
36
+ <key>NSHumanReadableCopyright</key>
37
+ <string>Geoffrey Grosenbach</string>
38
+ </dict>
39
+ </plist>
@@ -0,0 +1,470 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
5
+ <title>TFHpple Class Reference</title>
6
+ <meta id="xcode-display" name="xcode-display" content="render"/>
7
+ <meta name="viewport" content="width=550" />
8
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
9
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
10
+ <meta name="generator" content="appledoc 2.0.5 (build 789)" />
11
+ </head>
12
+ <body>
13
+ <header id="top_header">
14
+ <div id="library" class="hideInXcode">
15
+ <h1><a id="libraryTitle" href="../index.html">hpple 0.1.0 </a></h1>
16
+ <a id="developerHome" href="../index.html">Geoffrey Grosenbach</a>
17
+ </div>
18
+
19
+ <div id="title" role="banner">
20
+ <h1 class="hideInXcode">TFHpple Class Reference</h1>
21
+ </div>
22
+ <ul id="headerButtons" role="toolbar">
23
+ <li id="toc_button">
24
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
25
+ </li>
26
+ <li id="jumpto_button" role="navigation">
27
+ <select id="jumpTo">
28
+ <option value="top">Jump To&#133;</option>
29
+
30
+
31
+
32
+
33
+ <option value="tasks">Tasks</option>
34
+
35
+
36
+
37
+
38
+
39
+ <option value="properties">Properties</option>
40
+
41
+ <option value="//api/name/data">&nbsp;&nbsp;&nbsp;&nbsp;data</option>
42
+
43
+
44
+
45
+
46
+ <option value="class_methods">Class Methods</option>
47
+
48
+ <option value="//api/name/hppleWithData:isXML:">&nbsp;&nbsp;&nbsp;&nbsp;+ hppleWithData:isXML:</option>
49
+
50
+ <option value="//api/name/hppleWithHTMLData:">&nbsp;&nbsp;&nbsp;&nbsp;+ hppleWithHTMLData:</option>
51
+
52
+ <option value="//api/name/hppleWithXMLData:">&nbsp;&nbsp;&nbsp;&nbsp;+ hppleWithXMLData:</option>
53
+
54
+
55
+
56
+
57
+ <option value="instance_methods">Instance Methods</option>
58
+
59
+ <option value="//api/name/initWithData:isXML:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithData:isXML:</option>
60
+
61
+ <option value="//api/name/initWithHTMLData:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithHTMLData:</option>
62
+
63
+ <option value="//api/name/initWithXMLData:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithXMLData:</option>
64
+
65
+ <option value="//api/name/peekAtSearchWithXPathQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- peekAtSearchWithXPathQuery:</option>
66
+
67
+ <option value="//api/name/searchWithXPathQuery:">&nbsp;&nbsp;&nbsp;&nbsp;- searchWithXPathQuery:</option>
68
+
69
+
70
+
71
+ </select>
72
+ </li>
73
+ </ul>
74
+ </header>
75
+ <nav id="tocContainer" class="isShowingTOC">
76
+ <ul id="toc" role="tree">
77
+
78
+
79
+
80
+
81
+ <li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
82
+
83
+ </ul></li>
84
+
85
+
86
+
87
+
88
+
89
+ <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
90
+
91
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/data">data</a></span></li>
92
+
93
+ </ul></li>
94
+
95
+
96
+
97
+ <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
98
+
99
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hppleWithData:isXML:">hppleWithData:isXML:</a></span></li>
100
+
101
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hppleWithHTMLData:">hppleWithHTMLData:</a></span></li>
102
+
103
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hppleWithXMLData:">hppleWithXMLData:</a></span></li>
104
+
105
+ </ul></li>
106
+
107
+
108
+
109
+ <li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
110
+
111
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithData:isXML:">initWithData:isXML:</a></span></li>
112
+
113
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithHTMLData:">initWithHTMLData:</a></span></li>
114
+
115
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithXMLData:">initWithXMLData:</a></span></li>
116
+
117
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/peekAtSearchWithXPathQuery:">peekAtSearchWithXPathQuery:</a></span></li>
118
+
119
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/searchWithXPathQuery:">searchWithXPathQuery:</a></span></li>
120
+
121
+ </ul></li>
122
+
123
+
124
+ </ul>
125
+ </nav>
126
+ <article>
127
+ <div id="contents" class="isShowingTOC" role="main">
128
+ <a title="TFHpple Class Reference" name="top"></a>
129
+ <div class="main-navigation navigation-top">
130
+ <ul>
131
+ <li><a href="../index.html">Index</a></li>
132
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
133
+ </ul>
134
+ </div>
135
+ <div id="header">
136
+ <div class="section-header">
137
+ <h1 class="title title-header">TFHpple Class Reference</h1>
138
+ </div>
139
+ </div>
140
+ <div id="container">
141
+
142
+ <div class="section section-specification"><table cellspacing="0"><tbody>
143
+ <tr>
144
+ <td class="specification-title">Inherits from</td>
145
+ <td class="specification-value">NSObject</td>
146
+ </tr><tr>
147
+ <td class="specification-title">Declared in</td>
148
+ <td class="specification-value">TFHpple.h</td>
149
+ </tr>
150
+ </tbody></table></div>
151
+
152
+
153
+
154
+
155
+
156
+
157
+ <div class="section section-tasks">
158
+ <a title="Tasks" name="tasks"></a>
159
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
160
+
161
+
162
+
163
+
164
+
165
+ <ul class="task-list">
166
+ <li>
167
+ <span class="tooltip">
168
+ <code><a href="#//api/name/initWithData:isXML:">&ndash;&nbsp;initWithData:isXML:</a></code>
169
+
170
+ </span>
171
+
172
+
173
+ </li><li>
174
+ <span class="tooltip">
175
+ <code><a href="#//api/name/initWithXMLData:">&ndash;&nbsp;initWithXMLData:</a></code>
176
+
177
+ </span>
178
+
179
+
180
+ </li><li>
181
+ <span class="tooltip">
182
+ <code><a href="#//api/name/initWithHTMLData:">&ndash;&nbsp;initWithHTMLData:</a></code>
183
+
184
+ </span>
185
+
186
+
187
+ </li><li>
188
+ <span class="tooltip">
189
+ <code><a href="#//api/name/hppleWithData:isXML:">+&nbsp;hppleWithData:isXML:</a></code>
190
+
191
+ </span>
192
+
193
+
194
+ </li><li>
195
+ <span class="tooltip">
196
+ <code><a href="#//api/name/hppleWithXMLData:">+&nbsp;hppleWithXMLData:</a></code>
197
+
198
+ </span>
199
+
200
+
201
+ </li><li>
202
+ <span class="tooltip">
203
+ <code><a href="#//api/name/hppleWithHTMLData:">+&nbsp;hppleWithHTMLData:</a></code>
204
+
205
+ </span>
206
+
207
+
208
+ </li><li>
209
+ <span class="tooltip">
210
+ <code><a href="#//api/name/searchWithXPathQuery:">&ndash;&nbsp;searchWithXPathQuery:</a></code>
211
+
212
+ </span>
213
+
214
+
215
+ </li><li>
216
+ <span class="tooltip">
217
+ <code><a href="#//api/name/peekAtSearchWithXPathQuery:">&ndash;&nbsp;peekAtSearchWithXPathQuery:</a></code>
218
+
219
+ </span>
220
+
221
+
222
+ </li><li>
223
+ <span class="tooltip">
224
+ <code><a href="#//api/name/data">&nbsp;&nbsp;data</a></code>
225
+
226
+ </span>
227
+ <span class="task-item-suffix">property</span>
228
+
229
+ </li>
230
+ </ul>
231
+
232
+ </div>
233
+
234
+
235
+
236
+
237
+
238
+ <div class="section section-methods">
239
+ <a title="Properties" name="properties"></a>
240
+ <h2 class="subtitle subtitle-methods">Properties</h2>
241
+
242
+ <div class="section-method">
243
+ <a name="//api/name/data" title="data"></a>
244
+ <h3 class="subsubtitle method-title">data</h3>
245
+
246
+
247
+
248
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readonly) NSData *data</code></div>
249
+
250
+
251
+ </div>
252
+
253
+ </div>
254
+
255
+
256
+
257
+ <div class="section section-methods">
258
+ <a title="Class Methods" name="class_methods"></a>
259
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
260
+
261
+ <div class="section-method">
262
+ <a name="//api/name/hppleWithData:isXML:" title="hppleWithData:isXML:"></a>
263
+ <h3 class="subsubtitle method-title">hppleWithData:isXML:</h3>
264
+
265
+
266
+
267
+ <div class="method-subsection method-declaration"><code>+ (TFHpple *)hppleWithData:(NSData *)<em>theData</em> isXML:(BOOL)<em>isDataXML</em></code></div>
268
+
269
+
270
+ </div>
271
+
272
+ <div class="section-method">
273
+ <a name="//api/name/hppleWithHTMLData:" title="hppleWithHTMLData:"></a>
274
+ <h3 class="subsubtitle method-title">hppleWithHTMLData:</h3>
275
+
276
+
277
+
278
+ <div class="method-subsection method-declaration"><code>+ (TFHpple *)hppleWithHTMLData:(NSData *)<em>theData</em></code></div>
279
+
280
+
281
+ </div>
282
+
283
+ <div class="section-method">
284
+ <a name="//api/name/hppleWithXMLData:" title="hppleWithXMLData:"></a>
285
+ <h3 class="subsubtitle method-title">hppleWithXMLData:</h3>
286
+
287
+
288
+
289
+ <div class="method-subsection method-declaration"><code>+ (TFHpple *)hppleWithXMLData:(NSData *)<em>theData</em></code></div>
290
+
291
+
292
+ </div>
293
+
294
+ </div>
295
+
296
+
297
+
298
+ <div class="section section-methods">
299
+ <a title="Instance Methods" name="instance_methods"></a>
300
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
301
+
302
+ <div class="section-method">
303
+ <a name="//api/name/initWithData:isXML:" title="initWithData:isXML:"></a>
304
+ <h3 class="subsubtitle method-title">initWithData:isXML:</h3>
305
+
306
+
307
+
308
+ <div class="method-subsection method-declaration"><code>- (id)initWithData:(NSData *)<em>theData</em> isXML:(BOOL)<em>isDataXML</em></code></div>
309
+
310
+
311
+ </div>
312
+
313
+ <div class="section-method">
314
+ <a name="//api/name/initWithHTMLData:" title="initWithHTMLData:"></a>
315
+ <h3 class="subsubtitle method-title">initWithHTMLData:</h3>
316
+
317
+
318
+
319
+ <div class="method-subsection method-declaration"><code>- (id)initWithHTMLData:(NSData *)<em>theData</em></code></div>
320
+
321
+
322
+ </div>
323
+
324
+ <div class="section-method">
325
+ <a name="//api/name/initWithXMLData:" title="initWithXMLData:"></a>
326
+ <h3 class="subsubtitle method-title">initWithXMLData:</h3>
327
+
328
+
329
+
330
+ <div class="method-subsection method-declaration"><code>- (id)initWithXMLData:(NSData *)<em>theData</em></code></div>
331
+
332
+
333
+ </div>
334
+
335
+ <div class="section-method">
336
+ <a name="//api/name/peekAtSearchWithXPathQuery:" title="peekAtSearchWithXPathQuery:"></a>
337
+ <h3 class="subsubtitle method-title">peekAtSearchWithXPathQuery:</h3>
338
+
339
+
340
+
341
+ <div class="method-subsection method-declaration"><code>- (TFHppleElement *)peekAtSearchWithXPathQuery:(NSString *)<em>xPathOrCSS</em></code></div>
342
+
343
+
344
+ </div>
345
+
346
+ <div class="section-method">
347
+ <a name="//api/name/searchWithXPathQuery:" title="searchWithXPathQuery:"></a>
348
+ <h3 class="subsubtitle method-title">searchWithXPathQuery:</h3>
349
+
350
+
351
+
352
+ <div class="method-subsection method-declaration"><code>- (NSArray *)searchWithXPathQuery:(NSString *)<em>xPathOrCSS</em></code></div>
353
+
354
+
355
+ </div>
356
+
357
+ </div>
358
+
359
+
360
+ </div>
361
+ <div class="main-navigation navigation-bottom">
362
+ <ul>
363
+ <li><a href="../index.html">Index</a></li>
364
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
365
+ </ul>
366
+ </div>
367
+ <div id="footer">
368
+ <hr />
369
+ <div class="footer-copyright">
370
+ <p><span class="copyright">&copy; 2012 Geoffrey Grosenbach. All rights reserved. (Last updated: 2012-11-20)</span><br />
371
+
372
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
373
+
374
+ </div>
375
+ </div>
376
+ </div>
377
+ </article>
378
+ <script type="text/javascript">
379
+ function jumpToChange()
380
+ {
381
+ window.location.hash = this.options[this.selectedIndex].value;
382
+ }
383
+
384
+ function toggleTOC()
385
+ {
386
+ var contents = document.getElementById('contents');
387
+ var tocContainer = document.getElementById('tocContainer');
388
+
389
+ if (this.getAttribute('class') == 'open')
390
+ {
391
+ this.setAttribute('class', '');
392
+ contents.setAttribute('class', '');
393
+ tocContainer.setAttribute('class', '');
394
+
395
+ window.name = "hideTOC";
396
+ }
397
+ else
398
+ {
399
+ this.setAttribute('class', 'open');
400
+ contents.setAttribute('class', 'isShowingTOC');
401
+ tocContainer.setAttribute('class', 'isShowingTOC');
402
+
403
+ window.name = "";
404
+ }
405
+ return false;
406
+ }
407
+
408
+ function toggleTOCEntryChildren(e)
409
+ {
410
+ e.stopPropagation();
411
+ var currentClass = this.getAttribute('class');
412
+ if (currentClass == 'children') {
413
+ this.setAttribute('class', 'children open');
414
+ }
415
+ else if (currentClass == 'children open') {
416
+ this.setAttribute('class', 'children');
417
+ }
418
+ return false;
419
+ }
420
+
421
+ function tocEntryClick(e)
422
+ {
423
+ e.stopPropagation();
424
+ return true;
425
+ }
426
+
427
+ function init()
428
+ {
429
+ var selectElement = document.getElementById('jumpTo');
430
+ selectElement.addEventListener('change', jumpToChange, false);
431
+
432
+ var tocButton = document.getElementById('table_of_contents');
433
+ tocButton.addEventListener('click', toggleTOC, false);
434
+
435
+ var taskTreeItem = document.getElementById('task_treeitem');
436
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
437
+ {
438
+ taskTreeItem.setAttribute('class', 'children');
439
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
440
+ }
441
+
442
+ var tocList = document.getElementById('toc');
443
+
444
+ var tocEntries = tocList.getElementsByTagName('li');
445
+ for (var i = 0; i < tocEntries.length; i++) {
446
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
447
+ }
448
+
449
+ var tocLinks = tocList.getElementsByTagName('a');
450
+ for (var i = 0; i < tocLinks.length; i++) {
451
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
452
+ }
453
+
454
+ if (window.name == "hideTOC") {
455
+ toggleTOC.call(tocButton);
456
+ }
457
+ }
458
+
459
+ window.onload = init;
460
+
461
+ // If showing in Xcode, hide the TOC and Header
462
+ if (navigator.userAgent.match(/xcode/i)) {
463
+ document.getElementById("contents").className = "hideInXcode"
464
+ document.getElementById("tocContainer").className = "hideInXcode"
465
+ document.getElementById("top_header").className = "hideInXcode"
466
+ }
467
+
468
+ </script>
469
+ </body>
470
+ </html>