• 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
When am I no longer the pasteboard owner?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When am I no longer the pasteboard owner?


  • Subject: When am I no longer the pasteboard owner?
  • From: Jim Correia <email@hidden>
  • Date: Wed, 10 May 2006 17:12:16 -0400

When the user copies an object in my application, I am placing the native type on the pasteboard right away (the URI rep for the managed object) and declaring all the types that the object can be converted to (string and attributed string, for the sake of argument).

The documentation points out that the pasteboard owner must be a long lived object, so I allocate a helper, and make that the owner (and tell it which managed object context to use to do the conversions).

The problem is, when can I release this helper object? - pasteboardChangedOwner: appears to only be sent in the case that the owner is changing, and the I haven't gotten a - pasteboard:profideDataForType: for one or more of the types that I declared or added.

Do I have to do the book keeping which the previous paragraph suggests? Or have I missed an obvious, simpler solution.

Thanks,
Jim
_______________________________________________
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


  • Follow-Ups:
    • Re: When am I no longer the pasteboard owner?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: object type testing
  • Next by Date: Re: object type testing
  • Previous by thread: Re: What is my data source ?
  • Next by thread: Re: When am I no longer the pasteboard owner?
  • Index(es):
    • Date
    • Thread