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.
Related
I have previously used MyBlurIntroductionView library for presenting walkthroughs of my app but the problem is it is buggy on iPhone X -- the content gets cut off by the notch on iPhone X. The library has not been updated for years so I need something that works on iPhone X. I am not sure if it a problem with setup of UIPageControl. Any inputs to fix it or an alternative library that is better for presenting walk through tutorials on iOS?
Firstly on MYBlurIntroductionView, Launch screen is missing add it by
Xcode-> NewFile-> LaunchScren
Assign it on your target
Output
Since MyBlurIntroductionView is very old source project you have to provide constraints
with respective to safe area(see here)
I download and installed some great app from App Store. And I like to see the view hierarchy of the app just for studying.
Is it possible?
How about using a jailbreak iPhone?
It's not possible with Xcode.
But with a jailbroken iPhone you might be able to use Reveal. But I haven't tested it.
I am working on a project and for some reason there is a main.storyboard and a screen.xib file both in the same objective-c project. The project is done on Xcode. To my understanding, it should only be one or the other. Am I mistaken?
An Xcode project can use a combination of .nibs, .xibs, and storyboards.
iOS uses nibs as an implementation detail that supports storyboards,
the iOS user interface design layout format. Storyboards allow you to
design and visualize the entire user interface of your app on one
canvas. For iOS developers, using storyboards is the recommended way
to design user interfaces.
*the same holds true for OS X as well, although depending on what you're creating storyboards might not be recommend.
↳ Cocoa Core Competencies : Nib File
Note - this is not an iOS app, so I can't run it on a device or in the iOS Simulator.
All of the examples I can find discuss hooking it up with iOS. Nothing about pure OSX development.
Actually, this looks like the answer:
Is there a way to use the WebKit web inspector from a Cocoa WebView object?
Didn't come up in my search until after posting the question!
The documentation I've found is terribly unclear on this - what I'd like to do is use the provided Xcode image library (catalog?) on a Mac OS X application.
iOS apps get the benefit of being able to use UIKit's UIImage object to quickly reference image files that are loaded into the catalog.
(To wit: UIImage(imageNamed: "Something"))
Since I'm writing a Mac OS app and not an iOS app, I don't get UIKit.
I'd assume that since XCode provides me with the same image library file by default on an OS X app, that I'm somehow intended to make use of it.
How do I reference images inside the library? Ideally I'd be able to do something with NSImage
In this situation, you can use NSImage just like UIImage:
NSImage(named: "Something")