Q:

How to find the window reference where a NSButton is located from its IBAction call? ( Cocoa Objective-C)

How can I find the window reference where the NSButton is located from its IBAction call ? 

A:

- (IBAction)someAction:(NSButton *)sender;
{
    NSWindow *theWindow = [sender window];
}

