While official Embarcadero materials emphasize only FireMonkey technology in light of creating MacOSX applications, it is yet very possible to create Cocoa applications w/ native MacOSX look and feel without using FireMonkey at all: Embarcadero have performed all the necessary job of translating Objective-C Cocoa headers to Delphi; compiler and debugger environment is working fine for non-FireMonkey applications.
So, in order to create 100% native Cocoa applications in Delphi XE2 you will have to master the following:
For example, I have taken CircleView sample application from MacOSX SDK and translated it one-to-one from Objective-C to Delphi — you can find compiled app and its Delphi source code attached below.
Ultimately it is quite possible to have Delphi XE2 cross platform app in form of native Windows GUI (VCL), native MacOSX GUI (Cocoa), shared business logic code, all implemented in Delphi.
Attachment | Size |
---|---|
CircleView.app.zip | 480.35 KB |
CircleView.src.zip | 11.87 KB |
Comments
Delphi tools?
Realy not better use FPC + XCODE? without Windows external installation.
P.S. I cannot use Windows, if i use it I lost my job.
Do you have any info on #4?
Interesting article! But I found it very short on details - it was an overview, I guess. I would be interested in a followup that examined each of these in more detail.
Specifically I'm interested in #4. What would be required to load a NIB in Delphi?
Post new comment