Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding TouchXML patch in extras/

  • Loading branch information...
commit fcdb977a4c97d55ec62a5410b19d84ff0c148cdb 1 parent 309d513
Eelco Lempsink eelco authored

Showing 2 changed files with 18 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 extras/README.txt
  2. +14 0 extras/TouchXML-setStringValue.patch
4 extras/README.txt
... ... @@ -0,0 +1,4 @@
  1 +-- TouchXML-setStringValue.patch
  2 +
  3 +Apply this patch to TouchXML to add support for setting the value of text
  4 +nodes. This is very useful if you want to hyphenate text in XML documents.
14 extras/TouchXML-setStringValue.patch
... ... @@ -0,0 +1,14 @@
  1 +--- TouchXML/Common/Source/Creation/CXMLNode_CreationExtensions.m 2010-04-23 17:48:40.000000000 +0200
  2 ++++ TouchXML/Common/Source/Creation/CXMLNode_CreationExtensions.m 2010-06-21 11:39:30.000000000 +0200
  3 +@@ -97,7 +97,10 @@
  4 +
  5 + - (void)setStringValue:(NSString *)inStringValue
  6 + {
  7 +-NSAssert(NO, @"TODO");
  8 ++if (_node->type == XML_TEXT_NODE)
  9 ++ xmlNodeSetContent(_node, (const xmlChar *)[inStringValue UTF8String]);
  10 ++else
  11 ++ NSAssert(NO, @"TODO");
  12 + }
  13 +
  14 + @end

0 comments on commit fcdb977

Please sign in to comment.
Something went wrong with that request. Please try again.