view1.hファイル
@property(nonatomic,strong) NSView *aboutView;
NSView を作成したview1.mファイルで
aboutView = [[NSView alloc]initWithFrame:NSMakeRect(6, 6, width -12, height -29)];
[aboutView setHidden:YES];
[view addSubview:aboutView];
NSImageView *imgl=[[NSImageView alloc]initWithFrame:NSMakeRect(0, 0, width -12, height -29)];
[imgl setImageAlignment:NSImageAlignBottomLeft];
[imgl setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[imgl setImageScaling:NSImageScaleAxesIndependently];
[imgl setImage:[NSImage imageNamed:@"yuan"]];
[aboutView addSubview:imgl];
ButtonController.mのNSView NSViewを見つけて非表示にする方法は?
-(void)mouseUp:(NSEvent *)theEvent{
NSView *aboutView = [(view1 *)self.superview.window aboutView];
[aboutView setHidden:NO];
}