• 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
[NSOutlineView rowForItem] giving me a different result than expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NSOutlineView rowForItem] giving me a different result than expected


  • Subject: [NSOutlineView rowForItem] giving me a different result than expected
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Mon, 4 Jul 2005 15:21:35 +0100

I've got some code which is doing stuff with NSOutlineView.

All that is happening, is I am moving an item up and down, via a pushbutton.

So, the user selects a row, presses "Up", and sees the row moving up by one. The moved row should then stay selected, at it's new position.

So, what my code does is this:

1) it modifies the ObjC tree-node class I that my outlineview's delegate processes. The node is moved up within the children.
2) We call NSOutlineView reloadItem with the parameter as the parent of the tree-node selected.


At this point, the parent the treenode are both visually displayed already.

I've also confirmed that this does call correctly through to the delegate method outlineView:child:ofItem:

3) We get the new row of the treenode, via rowForItem. This returns the wrong result.



What is going wrong here? Is my code buggy? Or is my understanding of NSOutlineView wrong?



--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: DotMacKit 2.0?
  • Next by Date: Upside down text in a flipped view
  • Previous by thread: Use of mountedRemovablemedia API????
  • Next by thread: Upside down text in a flipped view
  • Index(es):
    • Date
    • Thread