Regarding embedding a VST editor, I haven't tried it myself but I gather "ParentWindow" should be a pointer to an NSView on macOS.
Insert NSView crashes the program on the line
BASS_VST_EmbedEditor(d, Pointer(NSViewHandle))
on bass_vst :
function BASS_VST_EmbedEditor(vstHandle : DWORD; ParentWindow :{$IFDEF MSWINDOWS}HWND {$ELSE}Pointer{$ENDIF}) : BOOL; {$IFDEF MSWINDOWS}stdcall{$ELSE}cdecl{$ENDIF}; external bassvstdll;
on programm:
WindowHandle := Form_Vst.Handle;
if WindowHandle is TMacWindowHandle then
NSViewHandle := TMacWindowHandle(WindowHandle).View;
if BASS_VST_EmbedEditor(d, pointer(NSViewHandle)) then >>>>crash
this is the OSX report:
hread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x191f72b4c __abort_with_payload + 8
1 libsystem_kernel.dylib 0x191f98e84 abort_with_payload_wrapper_internal + 104
2 libsystem_kernel.dylib 0x191f98e1c abort_with_reason + 32
3 libobjc.A.dylib 0x191c0c040 _objc_fatalv(unsigned long long, unsigned long long, char const*, char*) + 128
4 libobjc.A.dylib 0x191c0bfc0 _objc_fatal(char const*, ...) + 44
5 libobjc.A.dylib 0x191bd61ac lookUpImpOrForward + 836
6 libobjc.A.dylib 0x191bd5b84 _objc_msgSend_uncached + 68
7 Remix 0x328a30934 juce::attachComponentToWindowRefVST(juce::Component*, void*, bool) + 44
8 Remix 0x32899fbbc JuceVSTWrapper::handleOpenEditor(JuceVSTWrapper::VstOpCodeArguments) + 124
9 Remix 0x32899dd90 JuceVSTWrapper::dispatcherCB(Vst2::AEffect*, int, int, long long, void*, float) + 648
10 libbass_vst.dylib 0x10953c898 BASS_VST_EmbedEditor + 288