Re: NSTableview datasource issues
Re: NSTableview datasource issues
- Subject: Re: NSTableview datasource issues
- From: email@hidden
- Date: Sun, 20 Dec 2009 17:32:52 +0000
- Importance: Normal
- Sensitivity: Normal
Alexander,
Thanks for your help.
Yes, I set the breakpoint on the data source methods? The datasource methods are not reached at all.
I did not give you all the methods in my code (it is too lengthy). segmentDict is a global variable because I need it somewhere else.
segmentIndustryData is populated with the method [self insertObject: s inSectorDataAtIndex:(int)i] implemented as follows:
-(void) insertObject:(segmentIndustry *) s inSectorDataAtIndex:(int)index
{
//Add the inverse of this operation to the undo stack
NSUndoManager *undo = [[segmentTableView window] undoManager];
[[undo prepareWithInvocationTarget:self] removeObjectFromSectorDataAtIndex:index];
if (![undo isUndoing]){
[undo setActionName:@"Insert Stock"];
}
//Add the stock to Array
[self startObservingSelector:s];
[segmentIndustryData insertObject:s atIndex:index];
}
a dealloc method takes care of releasing the arrays and dictionary. Anyway, even without retain, the table doesn't reload data.
I do not think naming is the issue, it is more of the good habit to have.
Thanks.
-----Original Message-----
From: Alexander Spohr [mailto:email@hidden]
Sent: Sunday, December 20, 2009 09:52 AM
To: email@hidden
Cc: email@hidden
Subject: Re: NSTableview datasource issues
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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