Re: -[NSTreeController moveNode:toIndexPath:] broken?
Re: -[NSTreeController moveNode:toIndexPath:] broken?
- Subject: Re: -[NSTreeController moveNode:toIndexPath:] broken?
- From: Rob Keniger <email@hidden>
- Date: Sun, 8 Feb 2009 23:53:12 +1000
2009/2/8 Tomas Franzén <email@hidden>
> 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 (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