Stupid question


#1
  • (void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row

This is a method in the code… it has too many words that I forget what it means… anyone who can tell me what does it mean?
What is the forTableColumn: ?
Appreciate…


#2

If you want to know what the method does, then should read the NSTableView Class Reference and also the reference for the associated protocols.

If, however, you are confused by the fact that the method name has multiple parts separated by spaces then it helps to remember that method names in Objective-C consists of one or more labels and parameters associtated with them.

If the method name has just one label, it can also have an associated parameter. However, if the method name has more than one label, then each label has an associated parameter.

@interface Foo: NSObject
- (int)fooness;
- (void)setFooness:(int)v;
- (id)initWithBar:(Bar *)bar withFrame:(CGRect)frame;
@end

#3

Thanks ibex10, now I get it.