Mercurial > dwindows
changeset 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 |
files | ios/dw.m |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ios/dw.m Fri Apr 09 08:41:34 2021 +0000 +++ b/ios/dw.m Fri Apr 09 09:48:13 2021 +0000 @@ -2311,6 +2311,7 @@ -(void)stepperChanged:(UIStepper*)theStepper { [textfield setText:[NSString stringWithFormat:@"%d", (int)[theStepper value]]]; + _dw_event_handler(self, DW_INT_TO_POINTER((int)[stepper value]), 14); } -(void)setClickDefault:(id)input { clickDefault = input; } -(void)dealloc { UserData *root = userdata; _dw_remove_userdata(&root, NULL, TRUE); dw_signal_disconnect_by_window(self); [super dealloc]; }