comparison mac/dw.m @ 1201:196cd8a8e6a8

Fixed dw_mle_set_cursor() should scroll to the point on Mac. Fixed a warning reported by clang in the test program. The events are occassionally getting errors on Mac and Unix... will need to debug.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 30 Sep 2011 03:32:26 +0000
parents 698875cfe8e5
children 5c1a01c6384d
comparison
equal deleted inserted replaced
1200:88b3f27542b0 1201:196cd8a8e6a8
4474 if(point < 0) 4474 if(point < 0)
4475 point = 0; 4475 point = 0;
4476 if(point > length) 4476 if(point > length)
4477 point = (int)length; 4477 point = (int)length;
4478 [mle setSelectedRange: NSMakeRange(point,point)]; 4478 [mle setSelectedRange: NSMakeRange(point,point)];
4479 [mle scrollRangeToVisible:NSMakeRange(point,point)];
4479 } 4480 }
4480 4481
4481 /* 4482 /*
4482 * Finds text in an MLE box. 4483 * Finds text in an MLE box.
4483 * Parameters: 4484 * Parameters: