NSDrawer:drawerWillResizeContents:toSize:
Home 目次>ApplicationKit>NSDrawer

drawerWillResizeContents:toSize:

引き出しの内容がリサイズされた時に呼ばれます


-(NSSize) drawerWillResizeContents:(NSDrawer *)sender
   toSize:(NSSize)contentSize


【返り値】
   NSSizeサイズ
【パラメータ】
   sender引き出し
   contentSizeサイズ


【解説】

引き出しの内容がリサイズされた時に呼ばれます。
サブクラスでオーバーライドします。



【例文】


#import "MyDrawer.h"

@implementation MyDrawer
-(NSSize)drawerWillResizeContents:(NSDrawer *)sender toSize:(NSSize)contentSize
{
NSLog(@"drawerWillResizeContents");
return contentSize;
}
@end


(C) 2000-2007 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>ApplicationKit>NSDrawer
修正日2006.12.26