Hi there,
I'm still getting confused by Objective-C. Sometimes you declare a variable like so:
NSRect rect;
And sometimes like so:
NSValue *value;
I never know when to add the *, so far I always looked it up in Apple's documentation. I know the difference is between a value and a pointer to an object.
But are there any hard and fast rules as to when I declare a value and when I declare a pointer? Something to make it easier to remember? Or do I have to know (eg. look up) which NSSomething is a value and which is an object?
Thank you!