Fix warning: ‘-textValue’ not found in protocol(s)

Confusingly, labelNode is a DOMElement, not a DOMNode, so textValue cannot
apply here; textContent which would be an appropriate replacement does not
exist AFAIK in this DOM Library.

So we manually get the text node via firstChild then get its text value
via nodeValue.
This commit is contained in:
Patrice Levesque
2016-02-17 10:56:05 -05:00
parent 50eae4c656
commit 5e9d0ce95a
+1 -1
View File
@@ -234,7 +234,7 @@
labelNode = [labelNodes objectAtIndex: count];
label = [labelNode attribute: @"id"];
name = [labelNode textValue];
name = [[labelNode firstChild] nodeValue];
color = [labelNode attribute: @"color"];
[values addObject: name];