• 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, data changing from outside the outlineview's events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineview, data changing from outside the outlineview's events


  • Subject: NSOutlineview, data changing from outside the outlineview's events
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Mon, 6 Jun 2005 19:29:05 +0100

Lets say I have an NSOutlineView, and some buttons to manipulate the data in the outlineview.

So, I press a button. This button calls a function to work on some data. The data that my NSOutLineViewDataSource displays, is now altered by this function.

Then what do I do? How do I tell the outlineview that my data is changed, and how to get it to keep as much of the old expansion and selection information as possible?

I tried reloadData, but that lost all the expansion and selection.

I tried reloadItem, but that would not work on nil, which is actually the root. The items of the root may be changed, after all.

So what next?

The DragNDropOutlineView example actually only changes the data from events passed to the NSOutlineViewDataSource, from the NSOutlineView. But I don't have the luxury of doing this, alas.

--
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


  • Follow-Ups:
    • Re: NSOutlineview, data changing from outside the outlineview's events
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: Where to find _objc_insertMethods
  • Next by Date: Re: [Moderator] EOT Re: NYT confirms rumor of Apple switch to Intel
  • Previous by thread: Re: [ANN] Getting the most from WWDC
  • Next by thread: Re: NSOutlineview, data changing from outside the outlineview's events
  • Index(es):
    • Date
    • Thread