Post

Replies

Boosts

Views

Activity

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
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 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 Open a View from the menu
There must be something I do wrong or do not understand in point 2: I select the Window Controller > Identity Inspector > Class > I cannot change it. I write MyWindowController and when I make intro or go away, it disappears. What am I missing? (in point 1 I have created File > New > Cocoa Class > Class: MyWindowController, Subclass of NSViewController, no XIP selected)
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’21
Comment on Usable screen space in a Mac
It works very well. Thank you! Can you explain this line? Where can I learn more about it?: let usableHight = NSMenu.menuBarVisible() ? totalHight - 23 : totalHight I would like to learn more. I understand what it does, but I do not know what it is or how to reproduce in another circumstance.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’21