| Home 目次>ApplicationKit>NSFontDescriptor | 10.4 |
objectForKey:
属性キーで、属性オブジェクトを返します
-(id) objectForKey:(NSString *)anAttribute
【返り値】 | |
| id | オブジェクト |
| 【パラメータ】 | |
| anAttribute |
【解説】
属性キーで、属性オブジェクトを返します。
【例文】
#import "MyObject.h"
@implementation MyObject
- ( IBAction )myAction:( id )sender
{
NSFontDescriptor *fntDesc;
fntDesc = [NSFontDescriptor fontDescriptorWithName: @"Osaka" size: 36 ] ;
NSLog( @"%@" ,[[fntDesc objectForKey: @"NSFontSizeAttribute" ] description]);
}
@end
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSFontDescriptor | 修正日2006.12.26 |