NSDrawer:setMaxContentSize:
Home 目次>ApplicationKit>NSDrawer

setMaxContentSize:

引き出しの内容の最大のサイズをセットします


-(void) setMaxContentSize:(NSSize)size


【返り値】
   voidなし
【パラメータ】
   sizeサイズ


【解説】

引き出しの内容の最大のサイズをセットします。



【例文】


#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction1:(id)sender
{
[drawer open];
[drawer setMaxContentSize:NSMakeSize(400,400)];
NSLog([NSString stringWithFormat:@"width=%.1f,height=%.1f",[drawer maxContentSize].width,[drawer maxContentSize].height]);
}

- (IBAction)myAction2:(id)sender
{
[drawer close];
}

@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