| @@ -60,16 +60,6 @@ | |||||
| namespace juce | namespace juce | ||||
| { | { | ||||
| #if JUCE_IOS | |||||
| #define JUCE_IOS_MAC_VIEW UIView | |||||
| typedef UIViewComponent ViewComponentBaseClass; | |||||
| #elif JUCE_MAC | |||||
| #define JUCE_IOS_MAC_VIEW NSView | |||||
| typedef NSViewComponent ViewComponentBaseClass; | |||||
| #else | |||||
| #error | |||||
| #endif | |||||
| static inline bool arrayContainsPlugin (const OwnedArray<PluginDescription>& list, | static inline bool arrayContainsPlugin (const OwnedArray<PluginDescription>& list, | ||||
| const PluginDescription& desc) | const PluginDescription& desc) | ||||
| { | { | ||||
| @@ -82,6 +72,14 @@ static inline bool arrayContainsPlugin (const OwnedArray<PluginDescription>& lis | |||||
| #if JUCE_MAC || JUCE_IOS | #if JUCE_MAC || JUCE_IOS | ||||
| #if JUCE_IOS | |||||
| #define JUCE_IOS_MAC_VIEW UIView | |||||
| typedef UIViewComponent ViewComponentBaseClass; | |||||
| #else | |||||
| #define JUCE_IOS_MAC_VIEW NSView | |||||
| typedef NSViewComponent ViewComponentBaseClass; | |||||
| #endif | |||||
| //============================================================================== | //============================================================================== | ||||
| struct AutoResizingNSViewComponent : public ViewComponentBaseClass, | struct AutoResizingNSViewComponent : public ViewComponentBaseClass, | ||||
| private AsyncUpdater | private AsyncUpdater | ||||