Post

Replies

Boosts

Views

Activity

Reply to Controlling window size on Mac
HI again,I expect that th window would show the correct size and auto adjust for the app (again, I am VERY new at developing for Mac) Like it used to be way back when.I wish I could show you (via a screen shot) what I am trying to accomplish. Basically, the app's window is almost closed. A user would have to manually resize the window in order to see the entire app. The app would appeear as a rectangle with one label (showing the name of the app), and and two text fields on the side of the label (via a HStack) for the user to input two integers, kind of like what you see with some random number generator apps for Mac. So, it would be like:name of app. Field one. Field two. But, it first appears as:name of Field.... Field....Thus having to manually resize the window. Thanks,Dan
May ’20
Reply to Controlling window size on Mac
Thanks for the info. It didnt work. This is the only thing holding the app back from being released.I did try adjusting the NSRect in the AppDelegate:// Create the window and set the content view. window = NSWindow( contentRect: NSRect(x: 0, y: 0, width: 230, height: 400), styleMask: [.titled, .closable, .miniaturizable, .resizable, .fullSizeContentView], backing: .buffered, defer: false) window.center() window.setFrameAutosaveName("Main Window") window.contentView = NSHostingView(rootView: contentView) window.makeKeyAndOrderFront(nil) }The Width and Height, but that doesnt seem to do anything. Also, where does one get information for the X and Y coordinates? Can't find information about that either.
May ’20
Reply to Heads or Tails Game, What's Wrong?
When a user first goes into the app, they are presented with the TwoCoins image (kind of like an introduction).Then, when they tap on the button, that image woud be replaced by the coin and by showing what ever answer the device comes up with, heads or tails.To give you a better idea, here's the finished product on the app store (I am converting that to SwiftUI).id1498335106Thanks again for ALL your help!Dan
Mar ’20
Reply to Heads or Tails Game, What's Wrong?
I'm not worried about the flipping animation yet, I just want the following:1. User taps the 'Flip Coin' button.2. The device selects which side it wants (heads or tails).3. Device shows the correct side of the coin. <--- This is the problem.The coins are two seperate images. I cannot get the device to show the correct image when it's done flipping the coin.The word 'coin' is just a label for the button. No value assigned to it.
Mar ’20