Re: NSXMLParser attributeDict enumeration

2009-04-27 Thread Martijn van Exel
On Mon, Apr 27, 2009 at 19:05, Quincey Morris wrote: > On Apr 27, 2009, at 08:10, Martijn van Exel wrote: > >currentNode.lat = (double)[attributeDict objectForKey:key]; >> ... >> Member 'lat' is a double. The above does not work. 'Pointer value used >> where >> float was expected'.

Re: NSXMLParser attributeDict enumeration

2009-04-27 Thread Quincey Morris
On Apr 27, 2009, at 08:10, Martijn van Exel wrote: currentNode.lat = (double)[attributeDict objectForKey:key]; ... Member 'lat' is a double. The above does not work. 'Pointer value used where float was expected'. So I should dereference? currentNode.lat = (dou

Re: NSXMLParser attributeDict enumeration

2009-04-27 Thread Drew Lawson
According to Martijn van Exel: > Hi all, > > This might be more of a C problem than a Cocoa problem per se. > Enumerating the values of an attribute dictionary in NSXMLReader I try to > set some members of a currentNode object (which does not represent an XML > node, confusingly): > > NS

NSXMLParser attributeDict enumeration

2009-04-27 Thread Martijn van Exel
Hi all, This might be more of a C problem than a Cocoa problem per se. Enumerating the values of an attribute dictionary in NSXMLReader I try to set some members of a currentNode object (which does not represent an XML node, confusingly): NSEnumerator *enumerator = [attributeDict keyEnume