descriptorWithDescriptorType:bytes:length:
指定したタイプとプロセス番号でアップルイベントデスクリプタを返します。
+(NSAppleEventDescriptor *)descriptorWithDescriptorType:(DescType)descriptorType: bytes:(const void *)bytes: length:(unsigned int)byteCount:
解説
指定した記述タイプ(descType)とプロセス番号でアップルイベントデスクリプタオブジェクトを返します。
【descType】AppleEvent送付先を指定するタイプ
● typeAppleSignature アプリケーションのクリエータタイプ
● typeProcessSerialNumber プロセスのシリアル番号
{0,kNoProcess}存在しない
{0,kSystemProcess}システムプロセス
{0,kCurrentProcess}現在のプロセス
● typeSessionID セッションID
● typeTargetID ターゲットID
返り値
( NSAppleEventDescriptor * )
アップルイベントデスクリプタ
引数
( DescType )descriptorType
デスクリプタタイプ
( const void * )bytes
( unsigned int )byteCount
サイズ
フレームワーク
Foundation
クラス
NSAppleEventDescriptor
Class Methods
使用可能
10.0
参照
例文
//sample1 //ターゲットを作る イベントの送付先 NSAppleEventDescriptor* targetDesc = [NSAppleEventDescriptor descriptorWithDescriptorType: typeProcessSerialNumber/*プロセスシリアルで指定*/ bytes: &systemPsn/*プロセスシリアルkCurrentProcess(現在のプロセス)*/ length: sizeof(systemPsn) ];