setContentViewMargins:
ボックスと内容ビューの境界との間をセットします
-(void)setContentViewMargins:(NSSize)offsetSize:
解説
ボックスと内容ビューの境界との間をセットします
返り値
( void )
なし
引数
( NSSize )offsetSize
間隔
フレームワーク
ApplicationKit
クラス
NSBox
Instance Methods
使用可能
10.0
参照
- contentViewMargins
例文
#import "MyObject.h" @implementation MyObject //myOutletはNSBox - (IBAction)myAction:(id)sender { NSSize size; [myOutlet setContentViewMargins:NSMakeSize(10,10)]; size = [myOutlet contentViewMargins]; NSLog(@"%.1f,%.1f",size.width,size.height); } @end