> Okay, I've spent all afternoon
Why do that ? If you hit a wall after a half hour, send a mail.
> [button setAction:@selector(sayHello:window)];
strings and they will be automatically converted.
or (Methods starting with 'set' and taking one argument can be called
button.action = 'sayHello:'
respondsToSelector works the same way :
if ([button respondsToSelector:'sayHello:'])
As Ross said, you can't pass arguments with these. Selectors are just