@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?
Ah okay, thank you. I will check why I needed the ScrollView. I guess it had a reason
How can I access the previewHeight in objective-c? The pythonic one works, but in Xcode I cannot get further than [[doc windowControllers] firstObject];
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
Ok thanks, the reason why I had this script is because every time I open glyphs app, it opens the preview panel really really big, and all the tabs are inconsistently sized.
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
Am I missing some update somewhere? Is Xcode Version 9.3.1 (9E501) not ok? I just recently downloaded the SDK templates. Latest changes there are 3 months old.
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.