Native NS Toolbar

Using XE8, latest version of mCL.

It appears as though the native toolbar cannot be hidden. Is there any other method that would allow me to hide the toolbar? I'm trying to use this toolbar for OSX, and a different one for Windows.

Hi, 


In Windows the native toolbar isn't shown, so a simple Visible := False would suffice.

Kind Regards, 
Pieter

Sorry, What I actually meant was that on OSX, the native toolbar visible property doesn't work. I was trying to implement an option for which toolbar to show.

Hi, 


What you could try for the Mac side is the following code (on project form level):

var
  h: TMacWindowHandle;
begin
  h := WindowHandleToPlatform(Self.Handle);
  if Assigned(h.Wnd) then
    h.Wnd.setToolbar(nil);
end;

It requires the FMX.Platform.Mac unit.