• 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: Core Data copying and pasting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data copying and pasting


  • Subject: Re: Core Data copying and pasting
  • From: Matthew Firlik <email@hidden>
  • Date: Wed, 8 Feb 2006 14:01:46 -0800


On Feb 8, 2006, at 1:32 PM, Andrew Merenbach wrote:

Hi, all. I'm in need of advice on how to properly implement copying and pasting in my Core Data app. I use an NSTreeController in conjunction with an outline view. The method that I use now for copying of items and their children (and which doesn't work properly in my own implementation) is to create copies of the selected items in property-list form (that is to say, I use a recursive NSDictionary creation algorithm). I would submit my own code here but it is lengthy and I'm sure, internally, that it is far off-base.

Are there guidelines (or has anyone come up with sample code) as to how copying and pasting should be implemented in an outline view that has a Core Data tree controller back-end?

The persistent document tutorial has an example that should be a useful start:


http://developer.apple.com/documentation/Cocoa/Conceptual/ NSPersistentDocumentTutorial/05_CopyAndPaste/chapter_6_section_1.html

- matthew


_______________________________________________ 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
References: 
 >Core Data copying and pasting (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: Services and Windows
  • Next by Date: Re: ivar name clashes with gcc3
  • Previous by thread: Core Data copying and pasting
  • Next by thread: outlineViewItemDidCollapse
  • Index(es):
    • Date
    • Thread