I have been working with IPhone/XCode now for about six weeks, and I came to this from a non-C programming background. Although I see that most variable declarations are to a pointer, e.g., NSString *myString, I note that simple non-object things like integers are just declared as int myInt.
But there seem to be some objects that are declared in the nonpointer style as well: I think CGPoint is one of them.
So is there any hard and fast rule that distinguishes these cases, or is it sort of random?
Thanks in advance for any help.
John Doner
But there seem to be some objects that are declared in the nonpointer style as well: I think CGPoint is one of them.
So is there any hard and fast rule that distinguishes these cases, or is it sort of random?
Thanks in advance for any help.
John Doner