mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
NSView: Set clipsToBounds to true for non-NSViewComponentPeer NSViews
This commit is contained in:
parent
1eed07528e
commit
d6783a45f3
2 changed files with 8 additions and 0 deletions
|
|
@ -1753,6 +1753,10 @@ public:
|
|||
addMethod (@selector (viewDidMoveToWindow), viewDidMoveToWindow);
|
||||
addMethod (@selector (mouseDownCanMoveWindow), mouseDownCanMoveWindow);
|
||||
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
|
||||
addMethod (@selector (clipsToBounds), [] (id, SEL) { return YES; });
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
||||
registerClass();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -166,6 +166,10 @@ private:
|
|||
addMethod (@selector (isOpaque), isOpaque);
|
||||
addMethod (@selector (didAddSubview:), didAddSubview);
|
||||
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wundeclared-selector")
|
||||
addMethod (@selector (clipsToBounds), [] (id, SEL) { return YES; });
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
||||
registerClass();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue