Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching from iOS Development to Mac Development

Tags:

macos

ios

store

I want to update my developing knowledge from iOS to Mac for distributing my apps to Mac App Store. What are the differences? What are the limitations?

For example, if I want to port my iPhone app that syncs contacts with social network the various NSRequest or ABAddressBook are the same? It changes only views and corresponding view controllers? Does exists some sort of "adapters" from iOS to Mac to easily convert iOS apps to Mac?

In general, what challenges Mac apps arise respect to iOS apps? Thanks

like image 271
Ricibald Avatar asked Feb 21 '11 10:02

Ricibald


People also ask

Is iOS necessary for Mac development?

Developer RequirementsTo develop iOS apps, you need a Mac computer running the latest version of Xcode. Xcode is Apple's IDE (Integrated Development Environment) for both Mac and iOS apps. Xcode is the graphical interface you'll use to write iOS apps.

Can you build macOS apps with Swift?

Set the interface to SwiftUI, the life cycle to SwiftUI App, and the language to Swift, and then click Finish. Set the scheme to MacLandmarks > My Mac. By setting the scheme to My Mac, you can preview, build, and run the macOS app.

Do I need Xcode to develop on Mac?

In order to develop Apple apps, you'll need a Mac computer running the latest version of macOS. You'll need to download Xcode from the Mac App Store or from the Apple developer site. Once you have Xcode installed, you can begin writing code.

Do you need a Mac to develop Swift?

Swift is available on macOS, Linux, and Windows. This means that you can create Swift applications on these platforms. You don't need a Mac to learn Swift. If you want to build and shipt applications for iOS (and iPadOS), tvOS, macOS, or watchOS, then you need Xcode.


1 Answers

If you've gathered some experience you will get along with mac development in no time. Mac and iOS have many things in common, however there are some gotchas, not all of which are visible at first glance.

The most obvious difference may be the use of viewcontrollers - cocoa for mac knows viewcontrollers, however they play a different (and less important) role.

I think the best approach for you would be to take a quick look at the Cocoa Application Tutorial and the Cocoa Fundamentals Guide. Most of it will appear familiar to you. Other than that I'd suggest to not port that project over, but use it as a opportunity to learn mac dev and recreate it from scratch (if it is not too complex). Of course you can copy paste many of the logic stuff, no need to reinvent the wheel.

By the way, I started out developing for iOS too and I found it to be very easy to get used to cocoa mac.

As to your question regarding NSURLRequest (I think that's what you meant, theres no NSRequest in either platform), they are almost the same. Just look it up in the reference library. I found it very helpful to have the iOS and mac os reference library available at the same in my browser, so I could look up differences quickly.

like image 155
Toastor Avatar answered Nov 07 '22 08:11

Toastor