@GeorgSeifert do you have a log of things that change?
My plugins start to make weird things and it’s hard to find what’s happening.
The Variable Font plugin has a dragging function for resizing and it doesn’t work in 1184 anymore
I can fix it for newer Glyphs versions, I found the problem in this cascade: Doc.windowController().activeEditViewController().contentView().enclosingScrollView()
Which is a NoneType now. How can I access the same thing now?
The document doesn’t have a windowController , I can only find windowControllers , so I call the firstObject on that one. Then I can only get to .contentViewController and then I get stuck. Also because i’m half new to obj-c
Hier ist Schluss: [[doc windowControllers] firstObject].contentViewController
I know it’s messy, just starting to wrap my head around it
How can I get this to work? I added this in the implementation file, but there is no GSDocument header available, so it doesn’t recognise it as a class.
Unfortunately I cannot do anything properly what I am trying without getting the frameView and hopefully all its methods like position of active layer in view and such
The @interface makes the compiler believe that NSDocument has a ‘windowController’ method. Actually GSDocument (a subclass of NSDocument is implementing it) but in the end nobody cares. So you need to remove the ‘(GSDocument*)’ (or use NSDocument).
WOW, thanks for the info!
You know what? I had 5 Glyphs Versions and none of them had the name “Glyphs” anymore because I added the build number to the file name. Yesterday I removed the last Glyphs version with the entire name being only “Glyphs”. Now the framework is back after I added a copy with the same name.