Browse Subversion Repository
Contents of /trunk/Classes/MyWindow.m
Parent Directory
| Revision Log
Revision 60 -
( show annotations)
( download)
Wed May 4 05:49:49 2016 UTC
(7 years, 11 months ago)
by toshinagata1964
File size: 992 byte(s)
The build script is modified so that the copyright description is updated on Deployment build.
| 1 |
/* |
| 2 |
Copyright 2000-2016 Toshi Nagata. All rights reserved. |
| 3 |
|
| 4 |
This program is free software; you can redistribute it and/or modify |
| 5 |
it under the terms of the GNU General Public License as published by |
| 6 |
the Free Software Foundation version 2 of the License. |
| 7 |
|
| 8 |
This program is distributed in the hope that it will be useful, |
| 9 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
GNU General Public License for more details. |
| 12 |
*/ |
| 13 |
|
| 14 |
#import "MyWindow.h" |
| 15 |
|
| 16 |
@implementation MyWindow |
| 17 |
|
| 18 |
- (void)sendEvent:(NSEvent *)theEvent |
| 19 |
{ |
| 20 |
if ([theEvent type] == NSLeftMouseDown) { |
| 21 |
id delegate = [self delegate]; |
| 22 |
lastMouseDownLocation = [theEvent locationInWindow]; |
| 23 |
if (delegate != nil && [delegate respondsToSelector: @selector(changeFirstResponderWithEvent:)]) { |
| 24 |
[delegate changeFirstResponderWithEvent: theEvent]; |
| 25 |
} |
| 26 |
} |
| 27 |
[super sendEvent: theEvent]; |
| 28 |
} |
| 29 |
|
| 30 |
- (NSPoint)lastMouseDownLocation |
| 31 |
{ |
| 32 |
return lastMouseDownLocation; |
| 33 |
} |
| 34 |
|
| 35 |
@end |
|