macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

setCellAttribute:to:

セル属性をセットします
-(void)setCellAttribute:(NSCellAttribute)aParameter:
                  to:(int)value:

解説

セル属性をセットします。
使用不能/可能、編集不能/可能、ハイライト不可/可。
【NSCellAttribute】
● NSCellDisabled
● NSCellState
● NSPushInCell
● NSCellEditable
● NSChangeGrayCell
● NSCellHighlighted
● NSCellLightsByContents
● NSCellLightsByGray
● NSChangeBackgroundCell
● NSCellLightsByBackground
● NSCellIsBordered
● NSCellHasOverlappingImage
● NSCellHasImageHorizontal
● NSCellHasImageOnLeftOrBottom
● NSCellChangesContents
● NSCellIsInsetButton
● NSCellAllowsMixedState

返り値

( void )

なし

引数

( NSCellAttribute )aParameter

セル属性

( int )value

フレームワーク

ApplicationKit

クラス

NSCell

Instance Methods

使用可能

10.0

参照

- cellAttribute:

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
[bCell1 setCellAttribute:NSCellIsBordered to:1];

NSLog([NSString stringWithFormat:@"%d",[bCell1 cellAttribute:NSCellIsBordered]]);
//bCell1はテキストフィールドセル
}

@end