diff options
author | David Robillard <d@drobilla.net> | 2020-07-02 23:13:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-02 23:13:54 +0200 |
commit | 5182a0348e99e8793f0e0230254eb7ddbc8a3dfd (patch) | |
tree | 6d505c2b8739cfc7291b1b612b80fe0ea9daa08b /pugl/detail/mac.m | |
parent | 9483e34037463b083d3e7f437eec6f72c8173996 (diff) | |
download | pugl-5182a0348e99e8793f0e0230254eb7ddbc8a3dfd.tar.gz pugl-5182a0348e99e8793f0e0230254eb7ddbc8a3dfd.tar.bz2 pugl-5182a0348e99e8793f0e0230254eb7ddbc8a3dfd.zip |
Mac: Declare instance variables in implementation
Declaring instance variables in interfaces is deprecated, according to
Wobjc-interface-vars (Apple clang version 11.0.0).
Diffstat (limited to 'pugl/detail/mac.m')
-rw-r--r-- | pugl/detail/mac.m | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/pugl/detail/mac.m b/pugl/detail/mac.m index e46d989..0c25f04 100644 --- a/pugl/detail/mac.m +++ b/pugl/detail/mac.m @@ -119,6 +119,10 @@ updateViewRect(PuglView* view) } @implementation PuglWindow +{ +@public + PuglView* puglview; +} - (id) initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)aStyle @@ -180,6 +184,15 @@ updateViewRect(PuglView* view) @end @implementation PuglWrapperView +{ +@public + PuglView* puglview; + NSTrackingArea* trackingArea; + NSMutableAttributedString* markedText; + NSTimer* timer; + NSMutableDictionary* userTimers; + bool reshaped; +} - (void) dispatchExpose:(NSRect)rect { @@ -728,15 +741,15 @@ handleCrossing(PuglWrapperView* view, NSEvent* event, const PuglEventType type) @end @interface PuglWindowDelegate : NSObject<NSWindowDelegate> -{ - PuglWindow* window; -} - (instancetype) initWithPuglWindow:(PuglWindow*)window; @end @implementation PuglWindowDelegate +{ + PuglWindow* window; +} - (instancetype) initWithPuglWindow:(PuglWindow*)puglWindow { |