Difference between iPhone development and Mac OSX development
This question is for all the programmers who code in iphone as well as the Mac OSX platform.
I have been searching on Google for quite some time, but I could not find any good answer, and so I am posting the question here. Please apologize if this is not a programming question.
Question on development overview:
I would like to know how the iphone development tools are different from Mac OSX development tools.
Question on the programming language:
Is the programming done in
objective-cfor mac-osx as well ? Will it be the same syntax and format (for example, to create a button or textField)… ?
Question on the libraries:
If the programming is done in Xcode, how will the classes and libraries for
navigationbe for the development in Mac OSX. ? And is there an interface builder ?
Question on Simulation and Testing:
Is it as easy as iPhone development to simulate and test the app in a
- How to create NSIndexPath for TableView
- How can I use a few C++ files in my project without compiling every file as C++?
- iOS 6 - Facebook sharing procedure fails with error “The proxied app is not already installed”
- Moving MKCircle in MKMapView
- draw embossed arc using core graphics
- presentModalViewController in viewDidLoad on first launch
3 Solutions Collect From Internet About “Difference between iPhone development and Mac OSX development”
- Many different UI elements and interactions.
- The same.
- IMHO yes.
You may want to check out these posts to help you transition:
Jumping from iOS to OSX
Removing iOS SDKs from OSX
Tools are the same, you’ll use Xcode
just as with iOS Development.
The same language and syntax is used.
There are some differences, the most
important being Garbage Collection,
which is available on the Mac but
not on iOS. View Controllers also
play a different role and, of course,
different libraries and APIs are
used. Most of the UI elements you’re used to on the iPhone (tabbar, navbars, …) are not present on the Mac..
In terms of testing, it is pretty
straightforward like on the iPhone.
The Apple provided tools are the same. I’ved used Xcode 3 to develop both an iPhone app and some companion Mac OSX software at the same time.
You can develop for both Mac and iPhone using Objective C or Swift, although there are a lot more options for programming languages on the Mac (Python, Ruby, etc.)
The Cocoa framework for the Mac and Cocoa Touch framework look very similar, but most have slightly different API names, calling conventions and behaviors that you will have to deal with. Plus, of course the UI is different between multi-touch and mouse/keyboard/menu/window interaction. But I took a one window one view iPhone app, and pretty much did a line-by-line translation of all the buttons, other UI elements, etc., to make a Mac version.
The iPhone Simulator runs an iOS app compiled for it just like another Mac app, but using different frameworks inside a one window semi-sandbox.
- How to detect the location of my finger through in a scrollview or webview in Swift? (using touchesMoved if possible)
- Generating Swift models from Core Data entities
- Xcode 4 plugin development
- Get outlet size within awakeFromNib
- Selecting a word in a UITextView
- Get System Volume iOS
- didRegisterForRemoteNotificationsWithDeviceToken stopped being called
- Swift 3 Firebase update code convertion – sorting
- detecting the change of content of UITextField when the change is not made by the keyboard
- XCode 4.2 SVN issues
- Send notification to Mountain lion notification center
- multi-tab web browsers with UIWebView on iOS
- How to download large files using objective c on iphone
- iOS 7 Weather app expand/collapse transition
- Symbolicating iPhone App Crash Reports