diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-11 11:44:55 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-11 11:44:55 -0400 |
| commit | 80ff6b2048f728e9278650272b9d0b55e332c9fe (patch) | |
| tree | bfcd62e3415e9d064db460ed7fb87787ab06c112 | |
| parent | be561354517a8c947d46e947bb723db6b21dfbf1 (diff) | |
Renamed areaView to goAreaView in accordance to the other Objective-C class names on the Mac OS X backend.
| -rw-r--r-- | redo/area_darwin.m | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/redo/area_darwin.m b/redo/area_darwin.m index d4933d0..c3d9bd0 100644 --- a/redo/area_darwin.m +++ b/redo/area_darwin.m @@ -5,8 +5,6 @@ #import <Cocoa/Cocoa.h> #define toNSEvent(x) ((NSEvent *) (x)) -// TODO rename to goAreaView -#define toAreaView(x) ((areaView *) (x)) #define toNSView(x) ((NSView *) (x)) #define toNSInteger(x) ((NSInteger) (x)) @@ -14,14 +12,14 @@ #define toNSUInteger(x) ((NSUInteger) (x)) #define fromNSUInteger(x) ((uintptr_t) (x)) -@interface areaView : NSView { +@interface goAreaView : NSView { @public void *goarea; NSTrackingArea *trackingArea; } @end -@implementation areaView +@implementation goAreaView - (id)initWithFrame:(NSRect)r { @@ -100,14 +98,14 @@ event(flagsChanged, areaView_flagsChanged) Class getAreaClass(void) { - return [areaView class]; + return [goAreaView class]; } id newArea(void *goarea) { - areaView *a; + goAreaView *a; - a = [[areaView alloc] initWithFrame:NSZeroRect]; + a = [[goAreaView alloc] initWithFrame:NSZeroRect]; a->goarea = goarea; return (id) a; } @@ -153,7 +151,7 @@ struct xpoint getTranslatedEventPoint(id area, id e) NSPoint p; struct xpoint q; - p = [toAreaView(area) convertPoint:[toNSEvent(e) locationInWindow] fromView:nil]; + p = [toNSView(area) convertPoint:[toNSEvent(e) locationInWindow] fromView:nil]; q.x = (intptr_t) p.x; q.y = (intptr_t) p.y; return q; |
