can someone tell me why there is a * in the line?
What does it mean for the declaration?
NSString *someString;
Thank you guys
edit:
Thank you it helps me a lot but sometimes i see declarations without *
example:
BOOL areTheyDifferent; why there is no pointer in this declaration?
the
*character means “pointer” in the C world (which Objective-C lives in)someStringis a pointer to anNSStringobject.In Objective-C, you rarely need to worry about that fact, since all objects are passed around as pointers. You simply treat that
someStringvariable as if it was an instance of theNSStringclass.