I am trying to create a Sketchup plugin on MacOS that is able to a display box.
The plugin is linked to SketchupApi, Ruby and Cocoa framework.
The goal of the plugin is to access to the Sketchup Model to perform operation and to offer different settings through a dialog box using NSPanel.
I had no problem to create and call a static library on Macos from Ruby. Everything run fine with Sketchup.
But when I add the dialog stuff and turn the project from a static library to a bundle Ruby fails to load the library.
require “path_to_bundle” Ruby command fails and a laconic message only reports that ruby fails to load the file. Is Ruby able to load bundle?
I can’t find any sample that performs a similar task (except Skp_to_xml, but this is an output plugin that is not loaded with Ruby).
What is the right way to make ruby load bundle or to create a plugin with complex dialogs?