The problem:
How do I pass arguments ( ie the button number 0-9, or in future pi
(3.142) ) to a method using the addTarget: action: syntax
You don't. The single argument of an action is always the sender
(sending object, eg the NSButton).
Don't know how it works on the iPhone (I guess the same), but on Cocoa
you would distinguish the pressed buttons using a tag (NSControl -
setTag:/-tag).