Re: Dressing Core Data In Drag ...
Re: Dressing Core Data In Drag ...
- Subject: Re: Dressing Core Data In Drag ...
- From: SA Dev <email@hidden>
- Date: Fri, 13 May 2005 12:51:15 -0400
Never mind - found this: http://www.cocoabuilder.com/archive/
message/cocoa/2005/5/10/135445
Sorry, should've searched first. I didn't remember this having
been discussed.
On May 13, 2005, at 12:41 PM, SA Dev wrote:
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:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
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