public
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/Caged/gitnub.git
Search Repo:
Click here to lend your support to: gitnub and make a donation at www.pledgie.com !
Fix NSXML extensions so it can successfully build.
Caged (author)
Sun Apr 27 17:16:47 -0700 2008
commit  cdcb846dfba626604facfd1e69c368facabb02ed
tree    9dc2175a6bf66e116f24a190493a6c798d69eac6
parent  90ee3400a61f3339c7978b0d0ecf12bb705329a5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
 
 
 
 
 
 
 
 
 
19
20
21
22
23
 
 
 
 
 
 
 
 
 
 
24
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
 
3
4
5
6
7
8
9
10
11
12
13
14
15
 
 
16
17
18
19
20
21
22
23
24
25
26
0
@@ -1,25 +1,27 @@
0
-module NSXMLExtensions
0
- module_function :[]
0
- def [](idx)
0
- self.objectAtIndex(idx)
0
- end
0
-
0
- module_function :xpath
0
- def xpath(xpath)
0
- error = nil
0
- nodes = self.nodesForXPath_error(xpath, error)
0
- raise "Error parsing XML" if error
0
- return nodes
0
- end
0
-end
0
-
0
 module OSX
0
   class NSXMLDocument
0
- include NSXMLExtensions
0
+ def [](idx)
0
+ self.objectAtIndex(idx)
0
+ end
0
+
0
+ def xpath(xpath)
0
+ error = nil
0
+ nodes = self.nodesForXPath_error(xpath, error)
0
+ raise "Error parsing XML" if error
0
+ return nodes
0
+ end
0
   end
0
   
0
   class NSXMLElement
0
- include NSXMLExtensions
0
- end
0
+ def [](idx)
0
+ self.objectAtIndex(idx)
0
+ end
0
+
0
+ def xpath(xpath)
0
+ error = nil
0
+ nodes = self.nodesForXPath_error(xpath, error)
0
+ raise "Error parsing XML" if error
0
+ return nodes
0
+ end end
0
 end

Comments

    No one has commented yet.