comparison ios/dw.m @ 2443:42ba334cb8f7

iOS: DWSpinButton needs to generate events on stepper changes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 09 Apr 2021 09:48:13 +0000
parents 725a6fbb44cd
children ba24ddb19a43
comparison
equal deleted inserted replaced
2442:725a6fbb44cd 2443:42ba334cb8f7
2309 _dw_event_handler(self, DW_INT_TO_POINTER((int)[stepper value]), 14); 2309 _dw_event_handler(self, DW_INT_TO_POINTER((int)[stepper value]), 14);
2310 } 2310 }
2311 -(void)stepperChanged:(UIStepper*)theStepper 2311 -(void)stepperChanged:(UIStepper*)theStepper
2312 { 2312 {
2313 [textfield setText:[NSString stringWithFormat:@"%d", (int)[theStepper value]]]; 2313 [textfield setText:[NSString stringWithFormat:@"%d", (int)[theStepper value]]];
2314 _dw_event_handler(self, DW_INT_TO_POINTER((int)[stepper value]), 14);
2314 } 2315 }
2315 -(void)setClickDefault:(id)input { clickDefault = input; } 2316 -(void)setClickDefault:(id)input { clickDefault = input; }
2316 -(void)dealloc { UserData *root = userdata; _dw_remove_userdata(&root, NULL, TRUE); dw_signal_disconnect_by_window(self); [super dealloc]; } 2317 -(void)dealloc { UserData *root = userdata; _dw_remove_userdata(&root, NULL, TRUE); dw_signal_disconnect_by_window(self); [super dealloc]; }
2317 @end 2318 @end
2318 2319