• 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: NSOutlineView loading of data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView loading of data


  • Subject: Re: NSOutlineView loading of data
  • From: Stephane Sudre <email@hidden>
  • Date: Tue, 4 Oct 2005 11:17:35 +0200


On 4 oct. 05, at 0:56, Brandon Meyer wrote:

I have an NSOutlineView that I am trying to load data into. I can create 'nodes', edit the name, and then save the contents of the OutlineView into a file. However, I cannot seem to properly load the data back into the OutlineView.
One thing that I've noticed, if I create a new 'node' and click on it, it loads the data into the TableView that is associated with the first 'node' I created and then saved.
The OutlineView has its delegate and dataSource set to the appropriate controller.


Here are my loading/saving methods:
[...]
- (void) setCategories: (NSArray *)newCategories
{
    if (_categories != newCategories)
    {
        [_categories autorelease];

Is there a reason to use autorelease instead of release (Threaded reason for instance)?


_categories = [[NSMutableArray alloc] initWithArray: newCategories];
}
}

Are you calling reloadData somewhere?


_______________________________________________ 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
References: 
 >NSOutlineView loading of data (From: Brandon Meyer <email@hidden>)

  • Prev by Date: Re: facing pages in a pdfview?
  • Next by Date: Re: Where am I if I'm a .App package?
  • Previous by thread: NSOutlineView loading of data
  • Next by thread: Re: Setting the source of an NSArrayController from more than one other controller
  • Index(es):
    • Date
    • Thread