• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: When am I no longer the pasteboard owner?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >When am I no longer the pasteboard owner? (From: Jim Correia <email@hidden>)
 >Re: When am I no longer the pasteboard owner? (From: "John C. Randolph" <email@hidden>)
 >Re: When am I no longer the pasteboard owner? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: iTunesHelper-like application...
  • Next by Date: Re: Cocoa software design issue
  • Previous by thread: Re: When am I no longer the pasteboard owner?
  • Next by thread: iTunesHelper-like application...
  • Index(es):
    • Date
    • Thread