<div dir="ltr">On Mon, Nov 3, 2014 at 12:28 AM, Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be" target="_blank">jonas.maebe@elis.ugent.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br></span>I assume you didn't put it there in the hope that nobody would ever<br>notice it or ask questions about it. If you did in fact hope that, then<br>there are probably more effective approaches than posting it to the<br>fpc-pascal mailing list, where the people who are personally responsible<br>for this alleged degradation (or at least for not addressing it) are<br>subscribed.</blockquote><div><br></div><div>I'm sorry, Jonas. I just say what I've felt about FPC/Lazarus on Apple platform. I didn't mean to offend anybody. That footer text is now removed.</div><div><br></div><div> </div><div>On Mon, Nov 3, 2014 at 1:38 AM, Felipe Monteiro de Carvalho <span dir="ltr"><<a href="mailto:felipemonteiro.carvalho@gmail.com" target="_blank">felipemonteiro.carvalho@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br></span>It is possible, I was doing it before Objective Pascal was created.<br>Just use the functions in the objective-c runtime, read:<br><a href="http://wiki.lazarus.freepascal.org/PasCocoa" target="_blank">http://wiki.lazarus.freepascal.org/PasCocoa</a></blockquote><div><br></div><div>I thought this one is deprecated.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><a href="https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ObjCRuntimeRef/index.html" target="_blank">https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ObjCRuntimeRef/index.html</a><br><br>But I warn you that doing this is a terrible choice. Objective Pascal<br>is the way to go. I've been working in Objective Pascal in the LCL<br>Cocoa interface and it's pretty good IMHO. But if you are masochistic<br>you can use the runtime instead of Objective Pascal.<br></blockquote><div><br></div><div>Yes, it's terrible choice. I'd like to use the Cocoa runtime in OOP way but without the objective-pascal.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The Cocoa interface is advancing fast. I am even running out of known<br>bugs, so other people testing would be appreciated.<br></blockquote><div><br></div><div>Can I compile Lazarus using Cocoa on Mac? Last time I tried, it failed.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I don't see how Lazarus would break cross platform. That's a wierd statement.<br></blockquote><div><br></div><div>I meant the objective-pascal dialect, not the LCL.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">You got the order inverted here. It is not FPC/Lazarus that are less<br>Apple friendly. It is Apple that is each time less Pascal friendly,<br>and for that matter also each time less C/C++/Java friendly. Apple<br>wants you to use Swift (or whatever it's called).<br></blockquote><div><br></div><div>No, it's not. Apple owns the whole things, the platform, the API, the language, the IDE, the tools, the market, the device, everything. Including brings the money to us (app developers) through its customers. Apple has all its right to do whatever it wants. If we want to join them, we have to do it by their rules. As simple as that. </div><div><br></div><div>Apple owes pascal nothing, so to be pascal friendly. If we want pascal to be available on Apple platform, we should change pascal. Not the other way around. And that's where I think the problem comes. The way FPC adapt itself to Apple platform, by creating objective-pascal dialect, is so bad that it breaks one of its most important advantage: cross platform.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 3, 2014 at 1:52 AM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p>How will you be cross platform if you access Cocoa directly?</p></blockquote></div><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 class="gmail_extra"><br></div><div class="gmail_extra">Any explanation would be very much appreciated. Thank you.</div><div class="gmail_extra"><br></div>Regards,<br clear="all"><div><br></div>-- <br><div class="gmail_signature">-Bee-<br><br></div>
</div></div>