Learning as always, was going along quite nicely, until I realized I had no idea what the differences meant between these.
@class Player;
@class Map;
@interface View : NSView
{
Player* player_;
Map* currentMap_;
NSMutableArray *worldArray;
NSMutableArray *itemArray;
float cellHeight_;
}
@end
Never mind, turns out the side the star is on has no effect at all. Now I know why I was so confused.
All objective C objects are referenced by pointers, which is what the * denotes. Whether the star is on the left or the right doesn’t matter to the compiler; I believe it’s personal preference.
float doesn’t have a * because it’s a C primitive, not an Objective C object.