开发者

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

开发者 https://www.devze.com 2023-02-01 07:54 出处:网络
How can I find the window re开发者_JAVA百科ference where the NSButton is located from its IBAction call ?- (IBAction)someAction:(NSButton *)sender;

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];
}
0

精彩评论

暂无评论...
验证码 换一张
取 消