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 

catchUserClickInDrawingContent not getting called

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



Joined: 17 Jul 2009
Posts: 47
Location: Artic

PostPosted: Mon May 06, 2013 3:34 pm    Post subject: catchUserClickInDrawingContent not getting called Reply with quote

I'm trying to add some functionality to my App so that the user can set variables by clicking on a line and dragging it around. Overall, I'm trying to make make an easy way to set ranges for fit commands, area calculations, etc.

I looked at the Interaction example that comes with the framework, but the only methods being received by the delegate are:
Code:
- (void)clickedInPlot:(DGPlotCommand *)cmd rowIndicies:(NSIndexSet *)indices;
- (void)handleClickOnPoint:(NSDictionary *)dict;
- (BOOL)catchUserClickInBackgroundWithClickInfo:(NSDictionary *)dict;


Unfortunately, methods that do provide information on which command is selected do not seem to be sent to the delegate:
Code:

- (BOOL)catchUserClickInDrawingContent:(DGCommand *)cmd clickInfo:(NSDictionary *)dict;
- (void)clickedInPlot:(DGPlotCommand *)cmd lineSegmentFrom:(int)from to:(int)to;


I've tried widening the lines and that doesn't seem to help. I was able to add code to the catchUserClickInBackgroundWithClickInfo method that checks to see if use clicked on or near the line, but it is a little cludgy and I would use "catchUserClickInDrawingContent". Is there a reason why this method is no longer sent to the controller delegate?
Back to top
View user's profile Send private message
klaxamazoo



Joined: 17 Jul 2009
Posts: 47
Location: Artic

PostPosted: Thu May 09, 2013 11:55 am    Post subject: Reply with quote

I still can't seem to get the catchUserClickInDrawingContent method to be called.

I've tried return YES or NO to the various "catchUser" and interceptMouseDown methods. I've also checked the clickedInBars method and that doesn't seem to be called either.

Are these methods up and running for the 2.0 Framework?
Back to top
View user's profile Send private message
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