• 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
Example: Drag and Drop with Core Data Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Example: Drag and Drop with Core Data Relationships


  • Subject: Example: Drag and Drop with Core Data Relationships
  • From: "Adam Gerson" <email@hidden>
  • Date: Sun, 24 Feb 2008 23:22:03 -0500

In this example you are able to use drag and drop to change the order
of items in a single tableview, and to change group membership of
nested items in objects with relationships, all with Core Data. The
behavior is like iTunes style Playlist / Song relationships.

A few other bonuses:

-an "instant edit" for the groups table that places the users cursor
in editing mode inside the newly inserted row when the user clicks
add.
-delete key removes rows. (care of rentzsch.com)

This code was put together from the Apple DND examples as well as many
of the examples out there on the web.

I have only tested it on 10.5, but I did set the project to build for
10.4, so in theory it should work.

This code is free to use with no guarantees of any kind.

Comments welcome.

http://web.mac.com/agerson/Site/CoreDataDNDWithGroups.html

Adam
_______________________________________________

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

  • Prev by Date: Observing with GC
  • Next by Date: Re: Observing with GC
  • Previous by thread: Re: Observing with GC
  • Next by thread: Garbage Collection makes my app look fat
  • Index(es):
    • Date
    • Thread