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.pull/201/head
parent
50eae4c656
commit
5e9d0ce95a
|
@ -234,7 +234,7 @@
|
||||||
labelNode = [labelNodes objectAtIndex: count];
|
labelNode = [labelNodes objectAtIndex: count];
|
||||||
|
|
||||||
label = [labelNode attribute: @"id"];
|
label = [labelNode attribute: @"id"];
|
||||||
name = [labelNode textValue];
|
name = [[labelNode firstChild] nodeValue];
|
||||||
color = [labelNode attribute: @"color"];
|
color = [labelNode attribute: @"color"];
|
||||||
|
|
||||||
[values addObject: name];
|
[values addObject: name];
|
||||||
|
|
Loading…
Reference in New Issue