canAddChild
子オブジェクトを追加することができるかを返します
解説
子オブジェクトを追加することができるかを返します。
追加できればYESを返します。
返り値
( BOOL )
YES/NO
引数
フレームワーク
ApplicationKit
クラス
NSTreeController
Instance Methods
使用可能
10.4
参照
-canInsertChild
例文
#import "MyObject.h" // IBOutlet NSTreeController* myTreeController; @implementation MyObject - (IBAction)myAction:(id)sender { if ([myTreeController canAddChild]) { NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end