Re: When am I no longer the pasteboard owner?
Re: When am I no longer the pasteboard owner?
- Subject: Re: When am I no longer the pasteboard owner?
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 10 May 2006 19:51:18 -0700
On May 10, 2006, at 5:49 PM, Jim Correia wrote:
What I am asking is how do I determine that I will never be sent a
message again, so the pasteboard owner can release whatever rich
data it may have cached in order to provided the other types? [1]
It appears that -pasteboardChangedOwner: is only sent when the
owner hasn't already provided all of the types it has declared. If
it has provided all of the types, or if the pasteboard is released
(see example below using a transient pasteboard) without anyone
ever requesting the types, the message isn't set.
I think the answer is implicit in the question -- you can keep track
of the data types you've been asked to provide, and of which ones
you've been asked for. You can dispose of your cache either when the
pasteboard changes owner, or when you've supplied all the
representations you declared.
That said, again this isn't made clear in the documentation; would
you please submit an enhancement request (this should also serve to
make sure the behaviour you see is indeed expected).
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden