NSOutlineView + NSTreeController with Core Data

  • Hi, I'm learning Cocoa and I've hit a wall.
    I'm using a NSOutlineView, I have set it's bindings to a
    NSTreeController. (The NSTreeController is bound to my core data
    entity with an inversed relationship "parent" – "child" ) I'm having
    trouble get drag and drop to work correctly. I want to be able to
    rearrange the items in the hierarchy. I also need to support dropping
    files on the NSOutlineView. Is there any document or example with this
    setup?

    Kind Regards,
    Dave
  • Hey David,

    I followed this tutorial -  http://allusions.sourceforge.net/articles/treeDragPart1.php

    He uses private api methods, so for a shipping product, this may not be what you want.

    Also check out www.cocoadevcentral.com - Scott has a good tutorial on using DandD with a TreeController.

    > From what I have been able to find, someone correct me if I am wrong, depending on the level of complexity of your drag and drop implementation, the whole OutlineView/TreeController thing can be pretty difficult.

    Hope this helps,

    k

    -----Original Message-----
    From: cocoa-dev-bounces+kamd=<vulcan.com...> on behalf of David Brennan
    Sent: Wed 11/1/2006 8:28 AM
    To: <cocoa-dev...>
    Subject: NSOutlineView + NSTreeController with Core Data

    Hi, I'm learning Cocoa and I've hit a wall.
    I'm using a NSOutlineView, I have set it's bindings to a
    NSTreeController. (The NSTreeController is bound to my core data
    entity with an inversed relationship "parent" - "child" ) I'm having
    trouble get drag and drop to work correctly. I want to be able to
    rearrange the items in the hierarchy. I also need to support dropping
    files on the NSOutlineView. Is there any document or example with this
    setup?

    Kind Regards,
    Dave
    _______________________________________________
    Do not post admin requests to the list. They will be ignored.
    Cocoa-dev mailing list      (<Cocoa-dev...>)
    Help/Unsubscribe/Update your Subscription:
    http://lists.apple.com/mailman/options/cocoa-dev/<kamd...>

    This email sent to <kamd...>
previous month november 2006 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
Go to today