Xamarin has announced a Unified API for Xamarin.iOS and Xamarin.Mac which  allows developers to support both 32-bit and 64-bit applications with the same source code (as well as binaries) on both Mac and iOS.

iosplusxamarin

This update is the result of more than a year of development and brings the following features to Xamarin.Mac: 

  • 64-bit support
  • New 64-bit Frameworks
  • Support for lighter mobile profile
  • Easier code sharing between Mac and iOS

According to Miguel de Icaza in his announcement on the Xamarin blog, the Unified API overcomes two major flaws in Xamarin.iOS and Xamarin.Mac APIs:

  1. They did not support 64 bit applications
  2. They made iOS and Mac code sharing cumbersome

As well as introducing a wrapping layer to address the 32/64-bit split, Xamarin has also  dropped the namespace prefixes. This simplifies sharing code between iOS and Mac apps.

Here is an example to demonstrate the improvement. Previously you would have used:

xambefore

Now, with the Unified API, this becomes:

xamafter

 

Unified API means that Xamarin is now able to support all Apple's 64-bit-only frameworks including those in Yosemite. It also provides the ability for users to adopt Xamarin’s Mobile profile, used both on Android and iOS, and  which has been designed to be linkable and have a much smaller footprint on disk than the regular desktop edition.

As Miguel de Izcaca points out in another blog post, this is convenient for applications going into the AppStore or for devs who want to share more code across Android and iOS.

 

 

 

More Information

Xamarin

Major Xamarin.Mac Updates

Related Articles

Xamarin 3.0 Released With Xamarin Designer for iOS and Xamarin.Forms

A Quick Guide To Platform Conversion With Xamarin.Forms

 

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

 

More NEWS

You Don't Need To Touch Type To Go Fast
10 Feb 2016 09:46 - Janet Swift

It is a sad fact that many programmers don't learn to type, despite the fact that the keyboard is their main tool of the trade. New research, however, suggests that this might not matter as much as you might think and you don't have to be ashamed that you are not using all your fingers.

Asm.js Goes All Edgy
27 Nov 2015 00:00 - Ian Elliot

Edge, Microsoft's browser replacement for IE, has been quick to drop the legacy technologies and just as quick to embrace the new stuff. The lastest new technology to make it into Edge is asm.js and there is a nice proof of principle that it is indeed faster. 

Other Articles

 

justjsquare

 



 

Comments




or email your comment to: This email address is being protected from spambots. You need JavaScript enabled to view it.