# New Mac/iOS/Windows App

**URL:** https://talk.remobjects.com/t/new-mac-ios-windows-app/7553
**Category:** Elements
**Created:** [November 21, 2015, 9:19pm UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553 "2015-11-21T21:19:16Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![bibbinator](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bibbinator/32/1699_2.png) [@bibbinator](https://talk.remobjects.com/u/bibbinator)
#### Post date: [November 21, 2015, 9:19pm UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/1 "2015-11-21T21:19:16Z")

</div>

Hi,  
I’m starting a new project which is a graphical app for Mac, iOS and Windows. I would normally use Qt, thinking of trying using Rem Objects tools (Fire, Silver, Sugar). I’m hoping to be able to use Apple’s Metal on Mac/iOS and Microsoft’s DX12 on Windows.

Are there any examples of a multi-platform app like this? I would like to see how a project can be organized with shared code and how platform specific code is abstracted.

Thanks for any help!  
Brett

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [November 22, 2015, 8:36am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/2 "2015-11-22T08:36:08Z")

</div>

Hi,

There’s a sample in  
C:\Users\Public\Documents\RemObjects Samples\RemObjects Silver\Cross-Platform\Calculator

that shows a calculator that does just that. It has shared logic (the calculator class) and different guis for different platforms.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 22, 2015, 10:13am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/3 "2015-11-22T10:13:07Z")

</div>

Since we do have the samples in the Fire distro yet, i’m attaching the sample in question…

[Calculator.zip](https://talk.remobjects.com/uploads/default/original/2X/1/134721ae3ced6f28ce232a3b195ee9f526d238f5.zip) (1.2 MB)

---

<div class="post-metadata">

### Author: ![bibbinator](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bibbinator/32/1699_2.png) [@bibbinator](https://talk.remobjects.com/u/bibbinator)
#### Post date: [November 23, 2015, 9:58am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/4 "2015-11-23T09:58:57Z")

</div>

Awesome, thank you!

---

<div class="post-metadata">

### Author: ![bibbinator](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bibbinator/32/1699_2.png) [@bibbinator](https://talk.remobjects.com/u/bibbinator)
#### Post date: [November 27, 2015, 8:54am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/5 "2015-11-27T08:54:35Z")

</div>

A follow-up:

Do I understand correctly that Silver compiles down to native code on all platforms whereas C# remains managed on all platforms?

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [November 27, 2015, 9:00am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/6 "2015-11-27T09:00:59Z")

</div>

Silver compiles down to native code on iOS/OSX. On Android and Java it compiles to jar/dalvik. When targetting .NET it generates a .NET executable.

---

<div class="post-metadata">

### Author: ![bibbinator](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bibbinator/32/1699_2.png) [@bibbinator](https://talk.remobjects.com/u/bibbinator)
#### Post date: [November 27, 2015, 9:03am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/7 "2015-11-27T09:03:23Z")

</div>

Thanks for super fast reply!

Okay great. And is it possible to mix RemObjects C# source files and Silver files together on Windows?

The reason I ask is my app is heavy 3D with lots of DX12 I need to call and doing that with C# is likely going to be less painful than porting everything to Silver. But the core “engine” of my app I’m thinking to be in Silver.

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [November 27, 2015, 9:27am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/8 "2015-11-27T09:27:20Z")

</div>

Yes. Elements lets you combine all 3 languages in a single project.

---

<div class="post-metadata">

### Author: ![bibbinator](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bibbinator/32/1699_2.png) [@bibbinator](https://talk.remobjects.com/u/bibbinator)
#### Post date: [November 27, 2015, 9:29am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/9 "2015-11-27T09:29:23Z")

</div>

Okay.

And sorry, realized one question above not answered yet:

If I use C# does it remain managed on all platforms? Or does it also compile down to native on iOS?

Is there a C# Calculator example for multiple platforms?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 27, 2015, 4:52pm UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/10 "2015-11-27T16:52:04Z")

</div>

> [@bibbinator](#):
>
> If I use C# does it remain managed on all platforms? Or does it also compile down to native on iOS?

All three languages compile down to the same code. So whether you write C#, Silver or Oxygene code, it will be native on iOS/Mac.

> [@bibbinator](#):
>
> Is there a C# Calculator example for multiple platforms?

Attaching.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 27, 2015, 4:53pm UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/11 "2015-11-27T16:53:12Z")

</div>

[Calculator.zip](https://talk.remobjects.com/uploads/default/original/2X/f/f82bdae4ed02c229728a30447e4b837ca79f6c2f.zip) (1.2 MB)

---

<div class="post-metadata">

### Author: ![bibbinator](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bibbinator/32/1699_2.png) [@bibbinator](https://talk.remobjects.com/u/bibbinator)
#### Post date: [November 27, 2015, 8:17pm UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/12 "2015-11-27T20:17:34Z")

</div>

Okay, thanks for the post. Interesting.

So the mono lib is only then used on Windows where it’s a .NET executable? But on Mac, iOS it’s native and Android Java with no mono?

Sorry to drag this out, want to confirm. I see the mono lib inside the bundle of Fire on Mac (which I think was built with C#), so want to be sure that I understand your reply.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 28, 2015, 7:53am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/13 "2015-11-28T07:53:00Z")

</div>

Core Fire is build in C# and a native Mac app, but the compiler is not — it’s .NET based. That’s why Fire itself uses Mono to host the compiler and related lowlevel IDE infrastructure that depends on the compiler (such as Code Completion). Mac apps created with Elements — regardless of language — are pure native Mac apps.

---

<div class="post-metadata">

### Author: ![bibbinator](https://talk.remobjects.com/user_avatar/talk.remobjects.com/bibbinator/32/1699_2.png) [@bibbinator](https://talk.remobjects.com/u/bibbinator)
#### Post date: [November 28, 2015, 8:04am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/14 "2015-11-28T08:04:27Z")

</div>

Thanks for clearing this up!

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 28, 2015, 8:08am UTC](https://talk.remobjects.com/t/new-mac-ios-windows-app/7553/15 "2015-11-28T08:08:40Z")

</div>

FWIW, we’re using this: [http://docs.elementscompiler.com/Tools/Marzipan/](http://docs.elementscompiler.com/Tools/Marzipan/) to interact between the native app and the hosted Mono inside it.
