• 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: Reordering NSOutlineView through drag&drop (binding)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reordering NSOutlineView through drag&drop (binding)


  • Subject: Re: Reordering NSOutlineView through drag&drop (binding)
  • From: "Raphael Sebbe" <email@hidden>
  • Date: Wed, 30 May 2007 11:42:16 +0200

ok thanks for the link. I am actually already using that
observedObject trick. The real question would be more how to let
NSTreeController reparse the reordered underlying array, so that it
eventually appears correctly in the GUI.

Raphael

On 5/30/07, Sam Stigler <email@hidden> wrote:
I don't have any experience with this myself, but Scott Stevenson wrote a
great blog post on this very
topic:  http://theocacao.com/document.page/130 .  Check it
out -- it'll give you a good start!


-Sam


On May 30, 2007, at 3:46 PM, Raphael Sebbe wrote:

Hi to the list.

I have recently come up with a problem, trying to reorder an
outlineview with drag and drop.

the tree controller's contentArray is provided by the document. I want
to change order in that array when I move the items around in the
outline view. So far I could handle that by implementing the related
datasource methods (and KVO notifications are sent for that array),
but, whenever the array in changed, that change is not reflected in
the GUI (the old order is preserved).

This may be related to the sort descriptors, which  I don't use, and
in which case the "natural order" is used. Well, no... not after I
change the array. I could get a workaround by setting that array to an
empty one, then the reordered one but this has other side effects I
dont want.

I also tried -[NSTreeController rearrangeObjects], with no success.

Thanks in advance infor any clues !

Raphael
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Reordering NSOutlineView through drag&drop (binding) (From: "Raphael Sebbe" <email@hidden>)
 >Re: Reordering NSOutlineView through drag&drop (binding) (From: Sam Stigler <email@hidden>)

  • Prev by Date: NSBrowser is asking for wrong column
  • Next by Date: Qt embedded in Cocoa
  • Previous by thread: Re: Reordering NSOutlineView through drag&drop (binding)
  • Next by thread: NSBrowser is asking for wrong column
  • Index(es):
    • Date
    • Thread