|
|
|
@@ -155,21 +155,19 @@ private: |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
struct FlippedNSView : public ObjCClass<NSView>
|
|
|
|
struct InnerNSView : public ObjCClass<NSView>
|
|
|
|
{
|
|
|
|
FlippedNSView()
|
|
|
|
: ObjCClass ("JuceFlippedNSView_")
|
|
|
|
InnerNSView()
|
|
|
|
: ObjCClass ("JuceInnerNSView_")
|
|
|
|
{
|
|
|
|
addIvar<NSViewComponentWithParent*> ("owner");
|
|
|
|
|
|
|
|
addMethod (@selector (isFlipped), isFlipped);
|
|
|
|
addMethod (@selector (isOpaque), isOpaque);
|
|
|
|
addMethod (@selector (didAddSubview:), didAddSubview);
|
|
|
|
|
|
|
|
registerClass();
|
|
|
|
}
|
|
|
|
|
|
|
|
static BOOL isFlipped (id, SEL) { return YES; }
|
|
|
|
static BOOL isOpaque (id, SEL) { return YES; }
|
|
|
|
|
|
|
|
static void nudge (id self)
|
|
|
|
@@ -179,15 +177,12 @@ private: |
|
|
|
owner->triggerAsyncUpdate();
|
|
|
|
}
|
|
|
|
|
|
|
|
static void viewDidUnhide (id self, SEL) { nudge (self); }
|
|
|
|
static void didAddSubview (id self, SEL, NSView*) { nudge (self); }
|
|
|
|
static void viewDidMoveToSuperview (id self, SEL) { nudge (self); }
|
|
|
|
static void viewDidMoveToWindow (id self, SEL) { nudge (self); }
|
|
|
|
};
|
|
|
|
|
|
|
|
static FlippedNSView& getViewClass()
|
|
|
|
static InnerNSView& getViewClass()
|
|
|
|
{
|
|
|
|
static FlippedNSView result;
|
|
|
|
static InnerNSView result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|