Browse Source

NSViewComponentPeer: Explicitly set clipsToBounds

The default value of this property changed in Sonoma, but we still want
to use the old default.
v7.0.9
reuk 2 years ago
parent
commit
160f4a88b1
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/juce_gui_basics/native/juce_NSViewComponentPeer_mac.mm

+ 4
- 0
modules/juce_gui_basics/native/juce_NSViewComponentPeer_mac.mm View File

@@ -2104,6 +2104,10 @@ struct JuceNSViewClass : public NSViewComponentPeerWrapper<ObjCClass<NSView>>
addMethod (@selector (draggingEnded:), draggingExited); addMethod (@selector (draggingEnded:), draggingExited);
addMethod (@selector (draggingExited:), draggingExited); addMethod (@selector (draggingExited:), draggingExited);
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
addMethod (@selector (clipsToBounds), [] (id, SEL) { return YES; });
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
addMethod (@selector (acceptsFirstMouse:), [] (id, SEL, NSEvent*) { return YES; }); addMethod (@selector (acceptsFirstMouse:), [] (id, SEL, NSEvent*) { return YES; });
#if JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS #if JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS


Loading…
Cancel
Save