Dressing Core Data In Drag ...
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