NSDrawer:contentSize
Home 目次>ApplicationKit>NSDrawer

contentSize

引き出しの内容ビューのサイズを返します


-(NSSize) contentSize


【返り値】
   NSSizeサイズ


【解説】

引き出しの内容ビューのサイズを返します。



【例文】


#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction1:(id)sender
{
[drawer open];
[drawer setContentSize:NSMakeSize(50,50)];
NSLog([NSString stringWithFormat:@"width=%.1f,height=%.1f",[drawer contentSize].width,[drawer contentSize].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