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

pasteboardChangedOwner:

Notifies a prior owner of the specified pasteboard (and owners of representations on the pasteboard) that the pasteboard has changed owners.

Declaration 宣言

- (void)pasteboardChangedOwner:(NSPasteboard *)sender;

Parameters パラメータ

sender

The pasteboard object whose owner changed.

Discussion 解説

Pasteboard owners only need to implement this method if they need to know when they have lost ownership.

The owner is not able to read the contents of the pasteboard when responding to this method. The owner should be prepared to receive this method at any time, even from within the declareTypes:owner: method used to declare ownership.

Once an owner has provided all of its data for declared types, it will not receive a pasteboardChangedOwner: message. If, therefore, you are maintaining an object just for the purpose of providing data lazily, rather than relying solely on receipt of a pasteboardChangedOwner: message you need to keep track of what types were promised and what types have been provided. When all the types have been provided, you may release the owner.

See Also 参照

Related Documentation 関連文書