• 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: Drag and drop between 2 table views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and drop between 2 table views


  • Subject: Re: Drag and drop between 2 table views
  • From: mmalc Crawford <email@hidden>
  • Date: Thu, 28 Oct 2010 17:07:16 -0700

Paul Johnson wrote:

> I could build an array with the strings I want to drag and drop and that
> appears to be the proper way to implement this. So far I've found that info
> on Core Data is rather sparse, especially as it pertains to sample code.

The Core Data Programming Guide contains a section that specifically addresses Copy and Paste and Drag and Drop...


> I believe I've found the answer to my drag and drop problem:
>
> http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOs.html
>
> Drag and Drop is just a glorified copy/paste and on that web page I found:
> "If you just want to copy a managed object’s attributes, then in many cases
> the best strategy may be in the copy operation to create a dictionary
> (property list) representation of a managed object, then in the paste
> operation to create a new managed object and populate it using the
> dictionary."
>
Per previous reply:

On Oct 28, 2010, at 9:25 am, mmalc Crawford wrote:

> What you do to support drag and drop depends on the functionality you want. If you want to copy the objects, then you need to create representations that are not managed objects -- for example a dictionary -- as shown in <http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/05_CopyAndPaste/copyAndPaste.html#//apple_ref/doc/uid/TP40002833-SW1>.
>



mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Drag and drop between 2 table views
      • From: Paul Johnson <email@hidden>
References: 
 >Drag and drop between 2 table views (From: Paul Johnson <email@hidden>)
 >Re: Drag and drop between 2 table views (From: "Sean McBride" <email@hidden>)
 >Re: Drag and drop between 2 table views (From: Paul Johnson <email@hidden>)
 >Re: Drag and drop between 2 table views (From: Kyle Sluder <email@hidden>)
 >Re: Drag and drop between 2 table views (From: Paul Johnson <email@hidden>)
 >Re: Drag and drop between 2 table views (From: Paul Johnson <email@hidden>)

  • Prev by Date: Re: Drag and drop between 2 table views
  • Next by Date: [MEET] CocoaHeads Mac Developer Meetings
  • Previous by thread: Re: Drag and drop between 2 table views
  • Next by thread: Re: Drag and drop between 2 table views
  • Index(es):
    • Date
    • Thread