• 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
Dressing Core Data In Drag ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dressing Core Data In Drag ...


  • Subject: Dressing Core Data In Drag ...
  • From: SA Dev <email@hidden>
  • Date: Fri, 13 May 2005 12:41:25 -0400

Sorry for the subject, couldn't resist ... ;-)

I'm pulling my hair out over how to pass references to managed objects (within the same context) in a drag. I've figured out how to get an NSURL that points to the managed object and how to ask the persistent store coordinator for the object referenced by the URL. No problem. Unfortunately, if I declare something like "MyDraggingPBoardType", I can validate the drop because it contains my pboard type, but the array of NSURLs I set for the type is nil when I try to access it in the accept-drop.

I realize I can declare it as an URL pboard type, but I don't want text views or fields to be able to accept a coredata:// URL if the user sees they can drop it there. That would be ugly and utterly useless in this situation. So it looks like my own custom pboard type is the best way to go ... so *how* do I pass the URLs?


_______________________________________________ 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: Dressing Core Data In Drag ...
      • From: SA Dev <email@hidden>
  • Prev by Date: Re: Where/how to store lots of user application data
  • Next by Date: Re: Dressing Core Data In Drag ...
  • Previous by thread: Re: Open GL to Quicktime?
  • Next by thread: Re: Dressing Core Data In Drag ...
  • Index(es):
    • Date
    • Thread