• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

MACOS problem with ANY C++ GUI Window

Scheduled Pinned Locked Moved Developers' Forum
1 Posts 1 Posters 11.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    Brighter3D
    last edited by 3 Aug 2021, 03:02

    I am using Fiddle to run C++ GUI code from SketchUp Ruby,
    on Windows everything is fine.
    On MacOs I found a problem I can not solve by months.

    After window is shown (by first toolbar button) for the first time and closed
    most of the SketchUp "Window" menu items get disabled.
    It gets disabled right after window is shown and do not get enabled anymore (even after window is closed).

    It looks like this:
    Problem screenshot

    Also when you try to do the same again (show window) by the same first toolbar button, window is not shown again, and there is no button event on the ruby side (even when you click the button).

    It looks like a SketchUp is broken in some way by using c++ GUI window (event loop maybe?).
    It happens not only with FLTK but also with other GUI's like:

    • Coocoa
    • OpenGl
    • Nuklear
    • ultralig.ht

    Minimal test plugin:
    Test plugin

    XCode source:
    https://drive.google.com/file/d/1exFrLjjPIBqwQA3XfsPQCIjVgltV8qLO/view?usp=sharing

    Any help is appreciated...

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Buy SketchPlus
    Buy SUbD
    Buy WrapR
    Buy eBook
    Buy Modelur
    Buy Vertex Tools
    Buy SketchCuisine
    Buy FormFonts

    Advertisement