• 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
Re: -[NSTreeController moveNode:toIndexPath:] broken?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >-[NSTreeController moveNode:toIndexPath:] broken? (From: Tomas Franzén <email@hidden>)

  • Prev by Date: Re: How to draw text with fade out effect?
  • Next by Date: [Q] NSTextField and binding: What gets called?
  • Previous by thread: -[NSTreeController moveNode:toIndexPath:] broken?
  • Next by thread: Re: -[NSTreeController moveNode:toIndexPath:] broken?
  • Index(es):
    • Date
    • Thread