Mercurial > dwindows
comparison mac/dw.m @ 1302:5fbf384780d1
Simplified the DWStepper class a bit on Mac... although it really needs rewriting.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 03 Nov 2011 02:01:56 +0000 |
parents | 7527fb644bc0 |
children | ca02c24e80c9 |
comparison
equal
deleted
inserted
replaced
1301:7527fb644bc0 | 1302:5fbf384780d1 |
---|---|
2148 -(id)parent { return parent; } | 2148 -(id)parent { return parent; } |
2149 -(void)mouseDown:(NSEvent *)event | 2149 -(void)mouseDown:(NSEvent *)event |
2150 { | 2150 { |
2151 [super mouseDown:event]; | 2151 [super mouseDown:event]; |
2152 if([[NSApp currentEvent] type] == NSLeftMouseUp) | 2152 if([[NSApp currentEvent] type] == NSLeftMouseUp) |
2153 { | 2153 [self mouseUp:event]; |
2154 [textfield takeIntValueFrom:self]; | |
2155 _event_handler(parent, (void *)[self integerValue], 14); | |
2156 } | |
2157 } | 2154 } |
2158 -(void)mouseUp:(NSEvent *)event | 2155 -(void)mouseUp:(NSEvent *)event |
2159 { | 2156 { |
2160 [textfield takeIntValueFrom:self]; | 2157 [textfield takeIntValueFrom:self]; |
2161 _event_handler(parent, (void *)[self integerValue], 14); | 2158 _event_handler(parent, (void *)[self integerValue], 14); |