Hi,
I have a couple of preset sizes that the user can choose from in my UI, and am trying to tell the host (Logic/Garageband) when to resize. I read elsewhere that you can simply resize the plugin's NSView and the host will respond accordingly, but that doesn't seem to be the case -- Logic doesn't seem to care what size my plugin's view is, and I end up either with a lot of empty space or the plugin going outside the bounds of the window when trying to resize to a specific size.
I can get resizing working another way by overriding NSView::setFrame, and letting the user drag the window border, but I don't get to set a specific resolution this way (because the plugin is just reacting to what Logic tells it).
I can see from other plugins that at least old-style audiounits were capable of automatically resizing the containing window based on user input... Wondering if I am missing a step here.
Thanks,
Jon
I have a couple of preset sizes that the user can choose from in my UI, and am trying to tell the host (Logic/Garageband) when to resize. I read elsewhere that you can simply resize the plugin's NSView and the host will respond accordingly, but that doesn't seem to be the case -- Logic doesn't seem to care what size my plugin's view is, and I end up either with a lot of empty space or the plugin going outside the bounds of the window when trying to resize to a specific size.
I can get resizing working another way by overriding NSView::setFrame, and letting the user drag the window border, but I don't get to set a specific resolution this way (because the plugin is just reacting to what Logic tells it).
I can see from other plugins that at least old-style audiounits were capable of automatically resizing the containing window based on user input... Wondering if I am missing a step here.
Thanks,
Jon