[Pythonmac-SIG] objc methods to pythonese
Jordan Krushen
jordan at krushen.com
Thu Mar 23 21:06:40 CET 2006
On 3/23/06, Scott Frankel <leknarf at pacbell.net> wrote:
> If I understand correctly, this would translate in Python to:
>
> rectangle = setWidthheight_(width, height)
obj-c:
[rectangle setWidth:width height:height]
python:
rectangle.setWidth_height_(width, height)
> Correct that the 'h' in the "height" part of the method name is not
> capitalized?
Don't change capitalization. Per the docs, just replace :'s with _'s
and concatenate everything.
> How about the following?
>
> - (id)tableView:(NSTableView *)tableView
> objectValueForTableColumn(NSTableColumn *)tableColumn
> row:(int)row
tableView_objectValueForTableColumn_row_(tableView, tableColumn, row)
HTH,
J.
More information about the Pythonmac-SIG
mailing list