2009/2/8 Tomas Franzén <to...@lightheadsw.com>

> Hi,
>
> I recently began exploring NSTreeController, but I'm experiencing problems
> with its moveNode:toIndexPath:. It's new to Leopard, but seems to be
> consistently moving nodes to incorrect indexes. There's a previous list post
> about exactly this, but without replies.
> http://lists.apple.com/archives/cocoa-dev/2008/Sep/msg01635.html
>
<snip>

> Is moveNode:toIndexPath: completely broken?
>

Yes, as is -insertObject:atArrangedObjectIndexPath:.  This has been
confirmed to me as a bug by Apple.

The workaround is to use KVC indexed accessors to move/insert the objects
directly into your data model rather than calling the NSTreeController
methods.

--
Rob Keniger
_______________________________________________

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 arch...@mail-archive.com

Reply via email to