visualdatatools.com Forum Index visualdatatools.com
Discussion for DataTank and DataGraph
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Setting the error delegate.

 
Post new topic   Reply to topic    visualdatatools.com Forum Index -> DataGraph Framework
View previous topic :: View next topic  
Author Message
sussillo



Joined: 30 Apr 2009
Posts: 137

PostPosted: Mon Nov 02, 2009 6:01 pm    Post subject: Setting the error delegate. Reply with quote

Hi David,

I'm trying to get my framework to stop whenever there's an error in DG. So I tried
Code:


[drawController setDelegate:self];
[DGController setErrorCallbackDelegate:self];


And then I defined in the same class as "self"

Code:
- (void)DGerrorCallback:(NSString *)error_string
{
    DebugNSLog(@"DG error: %@.\n", error_string);
}


Is this how it should work? I'm guessing I messed something up since a break point set in this function never stops the program. In particular I'm trying to stop at these DG errors
Code:

2009-11-02 15:56:17.534 simulation_controller[945:813] selectColumn:forEntry:  Could not find the column in the data table
2009-11-02 15:56:17.534 simulation_controller[945:813] selectColumn:forEntry:  Could not find the column in the data table
2009-11-02 15:56:17.534 simulation_controller[945:813] selectColumn:forEntry:  Could not find the column in the data table
2009-11-02 15:56:17.535 simulation_controller[945:550b] add****ColumnWithName: Can only call this on the main thread
2009-11-02 15:56:17.545 simulation_controller[945:5803] add****ColumnWithName: Can only call this on the main thread


Thank you,
-David
_________________
David Sussillo
Back to top
View user's profile Send private message
David
Site Admin


Joined: 25 Nov 2006
Posts: 1963
Location: Chapel Hill, NC

PostPosted: Mon Nov 02, 2009 11:13 pm    Post subject: Reply with quote

This should now work. I just uploaded a new version.

David
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    visualdatatools.com Forum Index -> DataGraph Framework All times are GMT - 3 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group