Re: NSOutlineView loading of data
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