如何从IBAction调用中找到NSButton所在的窗口引用?
最佳答案
- (IBAction)someAction:(NSButton *)sender;
{
NSWindow *theWindow = [sender window];
}
关于cocoa - 如何从其IBAction调用中找到NSButton所在的窗口引用? ( cocoa Objective-C),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4552362/