Design Element
Comment on "Intro to C Pointers and Dynamic Memory"
by Dharm — Jun 11
I would have liked to see some reference to Objective C type variables in this regard. For example, I am having an array (NSArray *p) of NSXMLNode which I got from nodesForXPath of an html page. Now, I wanted to shift the array by one element i.e. typically in C we do (*p)++ as described in this tutorial, but this gives errors in Xcode and it fails to compile.

So, apart from using subarrayWithRange 1-[array count], is there a more efficient way to do this like in C style?
Back to "Intro to C Pointers and Dynamic Memory"
Design Element

Copyright © Scott Stevenson 2004-2015