| @@ -73,12 +73,19 @@ public: | |||||
| setBounds (0, 0, getParentWidth(), getParentHeight()); | setBounds (0, 0, getParentWidth(), getParentHeight()); | ||||
| toFront (true); | toFront (true); | ||||
| nativeSelectorComponent.setView ([[[BluetoothSelectorView alloc] init] getView]); | |||||
| selectorView = [[BluetoothSelectorView alloc] init]; | |||||
| nativeSelectorComponent.setView ([selectorView getView]); | |||||
| addAndMakeVisible (nativeSelectorComponent); | addAndMakeVisible (nativeSelectorComponent); | ||||
| enterModalState (true, nullptr, true); | enterModalState (true, nullptr, true); | ||||
| } | } | ||||
| ~BluetoothMidiSelectorOverlay() | |||||
| { | |||||
| [selectorView release]; | |||||
| } | |||||
| void paint (Graphics& g) override | void paint (Graphics& g) override | ||||
| { | { | ||||
| g.fillAll (Colours::black.withAlpha (0.5f)); | g.fillAll (Colours::black.withAlpha (0.5f)); | ||||
| @@ -108,6 +115,7 @@ private: | |||||
| } | } | ||||
| UIViewComponent nativeSelectorComponent; | UIViewComponent nativeSelectorComponent; | ||||
| BluetoothSelectorView* selectorView; | |||||
| JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BluetoothMidiSelectorOverlay) | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BluetoothMidiSelectorOverlay) | ||||
| }; | }; | ||||