• 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
OutlineView with multiple roots.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OutlineView with multiple roots.


  • Subject: OutlineView with multiple roots.
  • From: "Sachin Tulla" <email@hidden>
  • Date: Tue, 12 Dec 2006 10:01:05 +0530
  • Thread-topic: OutlineView with multiple roots.

Hi,
 I had multiple objects(roots) in an array. I could insert and delete the roots and corresponding child at run time, its in while loop, for each manupulation of the array, the
oulineview is reloaded.

- (id)outlineView:(NSOutlineView *)ov child:(int)index ofItem:(id)item {
    // is the parent non-nil?
    if (item)
        return [item childAtIndex:index];
    else
        // Else return the root
         return [array objectAtIndex:index];
    }

so in this way the whole array is loaded for [outlineview reloadData]; at runtime. By this all the expanded roots in the outlineview are refreshed each time and all the roots
are closed. where Iam unable to select a child for a particular root since it is refreshing all the time. I want to load only one particular rootnode which is updated not the whole array.(manupulation is done in an dedicated thread which always recieves packets to insert/replaces/deletes and displays it in the oulineView), if it is single root I found some sample code, but for multiple roots if anyone have any idea regarding this please give me the way to solve the problem.
Thank you.
sachin kumar T.

_______________________________________________

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

  • Prev by Date: NSConnection in modal windows
  • Next by Date: Re: Reporting Wizard in Cocoa
  • Previous by thread: Re: NSConnection in modal windows
  • Next by thread: MEETING: Reminder - Chicago - CocoaHeads / CAWUG Tuesday December 12th
  • Index(es):
    • Date
    • Thread