How to find the window reference where a NSButton is located from its IBAction call? (Cocoa Objective-C)
How can I find the window re开发者_JAVA百科ference where the NSButton is located from its IBAction call ?
- (IBAction)someAction:(NSButton *)sender;
{
NSWindow *theWindow = [sender window];
}
精彩评论