Post

Replies

Boosts

Views

Activity

Comment on Scroll View with text and img inside
I tried many things and I cannot make it work for macOS. Then I tried with iOS and it worked well easily. There must be something in macOS that must be different. Perhaps what is different is the height of the Container View and its View Controller. I tried different options and none worked for me.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Comment on Buttons in the title bar
Thank you. I saw that answer before making the question but those options do not work for me or perhaps I do not understand. One answer only accepts some kind of buttons, another seems objective-c? and the other I just do not understand. Thank you in any case. I will try to solve the problem in another way.
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’22
Comment on Buttons in the title bar
The answer related to NSTitlebarAccessoryViewController I do not understand. Probably they give as known some steps that I do not know. That is what I have tried: 1- I put a Window Controller from the Library 2- I suppose I have to create a new document? File > New File > Cocoa Class > Class WindowController / Subclass of NSWindowController / Also create XIP NOT selected. How do I connect that with the main window? 3- Do I have to put a button on that new Window controller? 4- I just do not understand the next step: "I connected the accessory view to an outlet (cleverly named accessoryView) in my NSWindowController subclass"
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’22