Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/Classes/NSEventAdditions.m

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations) (download)
Sat Sep 3 06:22:57 2011 UTC (12 years, 8 months ago) by toshinagata1964
File size: 998 byte(s)
initial import
1 //
2 // NSEventAdditions.m
3 //
4 // Created by Toshi Nagata on Sun Apr 25 2004.
5 //
6 /*
7 Copyright (c) 2004-2011 Toshi Nagata. All rights reserved.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation version 2 of the License.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17 */
18
19 #import "NSEventAdditions.h"
20
21
22 @implementation NSEvent (MyEventAddition)
23
24 - (NSEvent *)mouseEventWithLocation: (NSPoint)pt
25 {
26 return [NSEvent mouseEventWithType: [self type] location: pt modifierFlags: [self modifierFlags] timestamp: [self timestamp] windowNumber: [self windowNumber] context: [self context] eventNumber: [self eventNumber] clickCount: [self clickCount] pressure: [self pressure]];
27 }
28
29 @end

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26