macOS/iOS API解説

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

目次

initWithDescriptorType:bytes:length:

デスクリプタタイプでアップルイベントデスクリプタを初期化して返します
-(id)initWithDescriptorType:(DescType )descriptorType:
            bytes:(const void *)descriptorType:
            length:(unsigned int) byteCount:

解説

デスクリプタタイプでアップルイベントデスクリプタを初期化して返します。

返り値

( id )

オブジェクト()

引数

( DescType  )descriptorType

デスクリプタタイプ

( const void * )descriptorType
( unsigned int ) byteCount

クラス

NSAppleEventDescriptor

Instance Methods

使用可能

10.2

参照

例文

//ターゲットを作る
    NSAppleEventDescriptor* targetDesc = [[NSAppleEventDescriptor alloc]
        initWithDescriptorType: typeProcessSerialNumber
        bytes: &systemPsn
        length: sizeof(systemPsn)
    ];