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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to