I’m trying to read the cocos2d api doc but I’m confused about what the […] means in something like:
- (float) scale [read,write,assign]
I am expecting a type and a parameter name, so something like
- (void) addFrameWithFilename: (NSString *) filename
makes sense.
It’s a description of a property (and those are separated out as such in the docs you linked to). Those are property attributes in the []; in this case they are indicating the existence of two methods, a getter (read) and setter (write):