macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

drawerWillOpen:

ダブり
drawerWillOpen: へ移動

引き出しを開けようとする時に呼ばれます
-(void)drawerWillOpen:(NSNotification *)notification:

解説

引き出しを開けようとする時に呼ばれます。
open:で開けようとする場合、drawerShouldOpen:の後に呼ばれます。

返り値

( void )

なし

引数

( NSNotification * )notification

通知

フレームワーク

ApplicationKit

クラス

NSDrawer

Instance Methods

使用可能

10.0

参照

例文

#import "Drawerdeligate.h"
//drawerのデリゲート
@implementation Drawerdeligate

-(BOOL)drawerShouldOpen:(NSDrawer *)sender
{
NSLog(@"drawerShouldOpen");
return YES;
}

-(void)drawerWillOpen:(NSNotification *)notification
{
NSLog(@"drawerWillOpen");
}

@end