| 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
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSDrawer | 修正日2006.12.26 |