4 ms·
Could you explain about 3? Do all function calls require named arguments? (Never done Obj C)
by jaipilot747 14y ago
Could you explain about 3? Do all function calls require named arguments? (Never done Obj C)
- brianchu 14y agoIt's not required, per se, but it is idiomatic. You will never see an unnamed parameter in the standard library, or in most other people's code. In a sense, the parameter name is actually part of the method name Wikipedia has this example of Objective-C, which illustrates what it looks like: [window addNewControlWithTitle:@"Title" xPosition:20 yPosition:50 width:100 height:50 drawingNow:YES]; This is essentially calling the addNewControlWithTitle:xPosition:yPosition:width:height:drawingNow: method on the window object.