<div dir="ltr">On Sun, Nov 2, 2014 at 10:10 PM, Bee <span dir="ltr"><<a href="mailto:bee.ography@gmail.com" target="_blank">bee.ography@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_extra">Take a look at Delphi. From a single source code base, we can compile it for Windows and Mac. Hardly any changes are required. But if you want to target Mac using FPC, I believe you have to use objective-pascal to access Cocoa API which is not compatible with Windows API. That's where the cross platform breaks. Am I right? CMIIW.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Another example, take a look at Oxygene --another pascal language variant by RemObjects-- is able to target OSX, iOS, .Net, Mono, and Android natively without ruining their pascal syntax. Why can't FPC be like that? I don't understand because I'm not a compiler guy. :)</div></div></div></blockquote><div><br></div><div>If you code using LCL APIs only then you'll achieve the desired effect:</div><div>* you'll get an application that can compile on different platforms without any code changes (write once, compile anywhere)</div><div>* you won't need to use objective-pascal code.</div><div><br></div><div>Just don't bother yourself with "cocoa api" don't go too specific.</div><div><br></div><div>thanks,</div><div>Dmitry </div></div></div></div>