Instance Method インスタンスメソッド

registerUndoWithTarget:handler:

Records a single undo operation for a given target so that when an undo is performed, it executes the specified block. ある単一の取り消し操作をある与えられた目標に対して記録します、そうすることで取り消しが実行される時、それは指定されたブロックを遂行します。

Declaration 宣言

- (void)registerUndoWithTarget:(id)target 
                       handler:(void (^)(id target))undoHandler;

Parameters パラメータ

target

The target of the undo operation. 取り消し操作の目標。

undoHandler

A block to be executed when an operation is undone. 操作が取り消される時に遂行されるブロック。

The block takes a single argument, the target of the undo operation. ただ1つだけの引数、取り消し操作の目標、をとるブロック。

See Also 参照

Registering Undo Operations 取り消し操作を登録する