windowShouldZoom:toFrame:
ウインドウがズームされるときに呼びだされます
-(BOOL)windowShouldZoom:(NSWindow *)sender: toFrame:(NSRect)newFrame:
解説
ウインドウがズームされるときに呼びだされます。
ズームすれば、YESを返します
ズームしなければ、NOを返します
返り値
( BOOL )
ズームしたかYES/NO
引数
( NSWindow * )sender
送信オブジェクト
( NSRect )newFrame
新しいフレーム範囲
フレームワーク
ApplicationKit
クラス
NSWindow
Instance Methods
使用可能
10.0
参照
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender;//ボタンを押す { } -(BOOL)windowShouldZoom:(NSWindow *)sender toFrame:(NSRect)newFrame { NSLog(@"window zoom!!"); return NO; } @end