Set Button selector (on click event) at runtime ? (Cocoa : Mac Project)-Collection of common programming errors

Any idea how to set button selector at runtime (on click event) for mac (Not IOS)

I have a view controller with a button declared as outlet :

#import 

@interface MyView : NSView
@property (assign) IBOutlet NSButton *MyBtn;

i can access that buton with something like this :

MyView * v;
.
.
.
[v MyBtn]

i didn’t find “addTarget” choice like on cocoa touch. The only choice is “setTarget(id)”

I’m using Xcode 4.4.1 for osx mountain lion

any suggestion would be appreciated. thanks