How to setup screen size in Xcode for MacOS application? Do I need to do it programmatically?
I didn't find any settings in Interface Builder related to it or manuals.
Thanks!
Related
I’ve just started porting my iPad app to the Mac using Catalyst. It’s a document editor and uses UIDocument. I’m trying to get the default toolbar behaviour for a document editor on macOS where there’s a dropdown to quickly name, tag, and move the document, and a subtitle that shows if the document has been edited. I can’t see any way to do this with Catalyst — is it possible?
Thanks,
Luke
A representative from Apple confirmed to me that this is not possible using Catalyst. In my opinion this makes Catalyst unsuitable for document based apps at the moment (Big Sur is currently the latest version of macOS).
I need to run an Adobe AIR app across 2 monitors, which cannot be done with fullscreen mode. I am wondering if there is a way to hide the the OSX (Mountain Lion) menu bar. I can span a chromeless AIR window across 2 monitors, but the OSX menu bar is always on top.
Someone posted that they were able to hide the OSX menu bar by using another app (in this post), but so far I have not found a solution.
Sounds like they were using a Native application to remove the UI elements.
I'd suggest you look into doing this through an ANE. If you find the native code for this I'd be happy to wrap it into an ANE for you.
I found an app that can hide the OSX menu bar on Mountain Lion, for AIR apps and pretty much any other apps.
The app is MenuAndDockless
Instructions:
Download the app, install SIMBL loader first (comes with the app download), then install MenuAndDockless app.
Start up the AIR app, or any other kind of app (you will need to restart it if it's already running). Go to the MenuAndDockless Settings (Menu > Window > Settings > Settings…)
Set the desired settings and restart your app.
Here's a detailed manual for the MenuAndDockless app: http://myownapp.com/manuals/mad_manual/
Apple says that either user or OS X may decide to launch a Cocoa app in magnified mode instead of framework-scaled mode:
All apps that are not Cocoa apps run in magnified mode. However, a Cocoa app can also run in magnified mode if:
The user sets the option to open the app in low resolution (see Figure 1-7).
The app is known to have significant issues when running in framework-scaled mode, so the system makes an exception and instead
runs the app in magnified mode.
(see link)
But how the app developer can launch it magnified? Or, how to force OS X to do it?
You can set the property NSHighResolutionCapable to false in your Info.plist.
In XCode, that property is called High Resolution Capable.
I am using a MacBook Pro installed with Xcode 3.2.5 and iOS SDK 4.2. When I launch Interface Builder by clicking the nib file, then I do not see any library window. Anyone has idea on why it is behaving so?
Thanks!
Xcode 4.1 view -> utilities -> show object library
If you choose Library from the Tools menu, or if you press ⇧⌘L, does it not appear?
I had same problem just after updating to XCode 3.2.6 (IB is currently 3.2.6 also).
My machine is configured to work with two display screens but I don't always turn the smaller one on.
I found the library to be present on the second screen.
How it got there I have no idea.
Try switching to a higher display resolution to see if a similar thing happened in your case.
I think the problem is there is no Interface Builder plugin for XCode 4. You probably cannot edit nib file in XCode 4.
In the Xcode menu, choose View > Utilities > Size Inspector.
Make sure the Object library is visible in the pane below the Size inspector. If not, choose View > Utilities > Object Library.
Sometimes my interface builder screen doesn't show up, and I check my sytem resources and kill off some processes. Apparently, 600 or 700 MB of memory left isn't enough for XB to launch
it works using ⇧⌘L in xcode 3.2.6
Is there any way to create an app for the Mac App Store in much the same way as you do for the iPhone/iPad app store? Using Interface Builder or some similar program for creating views that will connect to the code with IBOutlets and IBActions?
If not, can anybody outline what is needed to create Mac Apps as opposed to iOS apps and perhaps point to a good tutorial, sample source code, or documentation resource?
Thanks for your help!
The technology is much the same for both Mac OS and iOS. You use Xcode and Interface Builder. iOS uses CocoaTouch whereas Mac OS X uses Cocoa (from which CocoaTouch was derived).
It's basically the same, but instead of UIViewControllers you use NSViewControllers. NSView is slightly different from UIView but the subview-mechanism is identical.