macOS/iOS API解説

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

目次

attributeKeys

属性キーの配列を返します

解説

属性キーの配列を返します。

返り値

( NSArray * )

配列

引数

クラス

NSObject

Instance Methods

使用可能

10.0

参照

- classDescription
- inverseForRelationshipKey:
- toManyRelationshipKeys
- toOneRelationshipKeys

例文

// Apple Scriptのadditionコマンド
-(NSNumber *) retCommand:(NSScriptCommand *)sCommand
{
        NSNumber *number = (NSNumber *)[[sCommand evaluatedArguments] 
                                                objectForKey:@"withNumber"];
        NSString *string = (NSString *)[[sCommand evaluatedArguments] 
                                                objectForKey:@"withString"];
        NSPropertySpecifier *prop =  [sCommand directParameter]; 


NSLog([NSString stringWithFormat:@"%x",[[prop containerClassDescription] className]]);

NSLog([NSString stringWithFormat:@"%x",[[prop keyClassDescription] className]]);

NSLog([[ self attributeKeys] description]);

		return number;
	}