E Learning Series Win Mac Development Coursebook Lesson1
E Learning Series Win Mac Development Coursebook Lesson1
Contents
Lesson 1 – Introduction to Windows and Mac Development and Setting up the Development
Environment ................................................................................................................................................. 2
Introduction .............................................................................................................................................. 3
FireMonkey Features ............................................................................................................................ 3
What is the difference between FireMonkey and RIA platforms like HTML5/CSS, Adobe Flash or
Silverlight?................................................................................................................................................. 6
System Requirements, Install and Setup .................................................................................................. 8
System Requirements ........................................................................................................................... 8
Installation ............................................................................................................................................ 9
Installing RAD Studio, Delphi or C++Builder ..................................................................................... 9
Installing InterBase XE Developer Edition ....................................................................................... 18
Installing the Platform Assistant(s) ................................................................................................. 19
Installing the FireMonkey tools for iOS........................................................................................... 29
Setting up RAD Studio to support development of iOS projects .................................................... 30
Summary, Looking Forward, To Do Items, Resources, Q&A and the Quiz ............................................. 33
To Do Items ......................................................................................................................................... 34
Links to Additional Resources ............................................................................................................. 34
Q&A: .................................................................................................................................................... 34
Self Check Quiz .................................................................................................................................... 40
Answers to the Self Check Quiz: ..................................................................................................... 41
Page 2
E-Learning Series: Getting Started with Windows and Mac Development
Introduction
Welcome to FireMonkey, the first native CPU- and GPU-powered application platform for building rich
business applications for Windows (Delphi/C++), Mac (Delphi/C++) and Mobile (Delphi only at this time).
This first lesson takes you through an introduction to the FireMonkey business application platform,
installing the RAD Studio XE2 software and setting up your development environment. This lesson will
also give you a quick look at building your first FireMonkey application.
FireMonkey Features
Before we start, let’s take a look at the FireMonkey Platform Features Overview and learn about the
major benefits of using FireMonkey for your Windows and Mac application development -
http://www.embarcadero.com/products/firemonkey.
Imagine a next generation platform that helps you build visually spectacular business applications that
are faster, more visually stunning, and more connected. Introducing FireMonkey, the first native CPU
and GPU powered platform for rich business applications. What you can build in FireMonkey is only
limited by your imagination.
Page 3
E-Learning Series: Getting Started with Windows and Mac Development
FireMonkey makes it easy for developers to rapidly build visually engaging and data rich HD and 3D
applications with blazing native code performance on Windows, Mac and iOS. You can create
FireMonkey applications that use a single source code base to target the Mac OS X, Win32, Win64 and
iOS (Delphi only in XE2) platforms. FireMonkey uses lightweight vector graphics based GUI controls on
top of a cross-platform abstraction, which is implemented for Windows, Mac OS X, and iOS. To render
HD and 3D user interfaces, FireMonkey uses:
Page 4
E-Learning Series: Getting Started with Windows and Mac Development
Lightweight controls mean that every pixel is drawn by FireMonkey; no operating specific (heavyweight)
controls are used. Being native not only means fast, it also means that applications are compiled into
simple and efficient executable files that are easy to distribute and deploy to Windows, Mac OS X or iOS
devices.
More Visually Stunning and Interactive - Finally, business applications can get Hollywood level
presentation. Easily create rich HD and 3D applications that communicate your business ideas
with higher visual fidelity and deeper user involvement. The FireMonkey GPU powered user
experience includes scalable vectors graphics, UI components, 3D processing and powerful
image effects with CPU powered business logic, animation and database access all working
together to help you rapidly create business applications that are more immersive, interactive
and appealing. FireMonkey vector based graphics gives application developers all the power of
complex graphics capabilities with all the ease of component based, Rapid Application
Development. With GPU based, resolution independent, scalable vectors, alpha blending and
gradients, you get razor sharp & lightning fast graphics, smooth animation and maximum
resolution on every device. You can ensure that your applications always look their very best, no
matter what resolution the target machine can run at. FireMonkey also provides an incredibly
flexible and powerful way to use styles, layouts and controls. With extremely flexible, powerful
and simple control parenting and tooling any part of your application can be customized and
high levels of reuse achieved. http://www.embarcadero.com/products/firemonkey/more-visually-stunning-
and-interactive.
More Power and Performance - No matter how dazzling the visuals are, if the user experience is
sluggish or unresponsive it all falls down. So FireMonkey applications are backed by the full
power of today's hardware to drive rich business applications with native CPU performance and
Page 5
E-Learning Series: Getting Started with Windows and Mac Development
GPU powered visuals on PC, Mac, and Mobile devices. FireMonkey effects and transformations
are all handled directly in the GPU, giving optimal performance and impact. Advanced
animations use the GPU with minimal CPU usage and automatic frame rate correction. With
FireMonkey you get the performance and responsiveness that you simply can't get from RIA
platforms, virtual machine runtimes, or dynamic languages.
http://www.embarcadero.com/products/firemonkey/power-and-performance.
More Connected - What your application does is equally important as what it does it with.
FireMonkey applications easily connect to the most popular databases, Web and cloud services,
internet protocols and mobile devices – giving you incredible business flexibility for both clients
and servers. FireMonkey includes built-in component based access to MS SQL Server, Oracle,
IBM DB2, MySQL, Sybase, Informix, InterBase and Firebird databases. And of course,
FireMonkey's data access is native which, once again, means high performance. Use
LiveBindings to visualize data in your FireMonkey application. LiveBindings offer expression-
based binding that enables you to bind objects either to each other, or to any number of data
sources. http://www.embarcadero.com/products/firemonkey/more-connected.
More Agile - FireMonkey includes a full suite of reusable components for HD and 3D user
interfaces, data access, effects, animation and more. Component and property based
development makes it simple and intuitive to work with all kinds of graphical elements and
resources. As well as to create your own components for you, your team or your customers to
use. FireMonkey's RAD development approach allows for fast visual prototyping using
customizable components, giving you the freedom to take an idea and quickly show your
customer exactly what you are thinking. But unlike prototyping tools, FireMonkey prototypes
are working applications that you can take from prototype all the way to production.
http://www.embarcadero.com/products/firemonkey/more-agile.
Page 6
E-Learning Series: Getting Started with Windows and Mac Development
FireMonkey is a native application platform, with many of the rich capabilities of RIA platforms such as
vector graphics, 3D, animation, effect, and cross-platform but FireMonkey is focused on the unique
needs of business, ISV, and industrial use software. FireMonkey is fully CPU and GPU native, UI oriented,
and provides powerful database and services connectivity.
Page 7
E-Learning Series: Getting Started with Windows and Mac Development
System Requirements
The following Windows platforms are supported for development:
For developing 64-bit Windows applications (using Delphi or RAD Studio only) you will need either a PC
running a 64-bit version of Windows or a 32-bit development PC connected to a PC running a 64-bit
version of Windows.
For developing OS X applications (using Delphi, C++Builder, or RAD Studio) you will need a PC running
Windows connected to an Intel-based Mac with 2 GB RAM or more, running OS X 10.6 (Snow Leopard)
or OS X 10.7 (Lion) over a local area network using an SSH, VNC or Windows file-sharing solution.
Page 8
E-Learning Series: Getting Started with Windows and Mac Development
For developing iOS applications (using Delphi XE2 or RAD Studio XE2) you will need Apple’s iOS SDK 4.2
or later (iOS SDK 5.1 recommended), Xcode 3.2.5 or later (if you are using Mac OS X 10.7.x Lion, you will
need to use Xcode version 4.2.3 or later). If you are using Xcode 4.3 or later, Apple now bundles include
and header files in the Xcode app bundle. For C++ developers who want build Mac applications, this
means you need to also install the Xcode command line tools to install the “/usr/include” and “/usr/lib”
directories and files (see notes about creating remote profiles). You will also need Free Pascal version
2.4.4 or later using the installer provided with the XE2 release.
FireMonkey applications run on multiple platforms with a basic Graphics Processing Unit (GPU). For
Windows development, any vendor DirectX 9.0 class or better (Pixel Shader Level 2). For OSX and iOS
development, OpenGL (note: qualified Macs all have a qualified GPU).
Additional system requirements are listed at the bottom of the RAD Studio data sheet -
http://www.embarcadero.com/products/rad-studio/rad-studio-data-sheet.pdf
Installation
There are several steps to installing RAD Studio for use in building FireMonkey applications for Windows,
Mac and iOS:
Let’s go through each of them to make sure you have all of the right pieces and parts installed to get
started building FireMonkey applications during this course.
If the product is purchased using Electronic Software Delivery (ESD), you receive a .zip file for RAD Studio
or an executable (.exe) file for Delphi or C++Builder.
To install using an ESD download:
1. Make sure you have an active Internet connection.
2. If you are installing RAD Studio:
Extract the .zip file into an empty directory on your hard drive. Note: Do not attempt to run
the installer directly from the .zip file without first extracting all files to a local directory.
Double-click the install launcher. The install launcher will appear with buttons to install
multiple items that are part of the product.
Select Delphi and/or C++Builder to begin product installation
3. If you are installing Delphi or C++Builder: Double-click the setup.exe to begin product
installation.
Page 9
E-Learning Series: Getting Started with Windows and Mac Development
4. When prompted, enter the serial number for the product. You can find the serial number in the
order confirmation email.
5. The installer downloads the required .zip files and uncompresses them.
6. The installer asks you to supply an archive location for the .zip files. Note: Backing up the
downloaded ZIP files is strongly encouraged so that in the future you can do a reinstall without
downloading all the ZIP files again.
7. The installer proceeds automatically. Follow the prompts.
If you purchased a Network License (managed by AppWave™ or the Embarcadero License Server), follow
these instructions to set up the install image. Note: Follow these instructions precisely or your users will
be prompted for a serial number and will be unable to install.
If you are going to use the trial edition you will find the Delphi, C++Builder and RAD Studio trial
downloads at
Page 10
E-Learning Series: Getting Started with Windows and Mac Development
Each Free, 30-day fully-functional trial includes the IDE, compilers, libraries and examples. The trial does
not include the command line compilers, VCL/FireMonkey source code and some bundled tools. The
latest trial versions include Update 4. There are three parts to successfully receiving a trial installation:
1. Select the trial product you want to download and click the download button. After you accept
the export agreement, your browser will download a zip file containing the installer. The
installer will download additional files as needed.
Page 11
E-Learning Series: Getting Started with Windows and Mac Development
2. You will be asked to Register or Sign-in to the Embarcadero Developer Network (EDN) so that
Embarcadero can send you your trial key.
Page 12
E-Learning Series: Getting Started with Windows and Mac Development
3. Check your email for the trial key that will be sent to you. Your trial period is 30 days from the
time you install the product (some variations occur, please check email). Please ensure you
spam filter will allow messages from “[email protected] “.
Page 13
E-Learning Series: Getting Started with Windows and Mac Development
Page 14
E-Learning Series: Getting Started with Windows and Mac Development
Page 15
E-Learning Series: Getting Started with Windows and Mac Development
If all went well during the installation, you should be able to start the RAD Studio IDE, register (one time
only) the product using your Embarcadero Account ID, Password and Product Key.
After the splash screen appears, you will be looking at the RAD Studio IDE.
Select the Help > About menu item from the main menu to bring up the about box (that should look
something like the following screen – notice that I have updated the help files to update 5):
Page 16
E-Learning Series: Getting Started with Windows and Mac Development
To make sure we can build FireMonkey applications for Windows, let’s use the FireMonkey HD
application wizard. From the main menu, select File > New and choose the “FireMonkey HD Application
– Delphi” or “FireMonkey HD Application – C++Builder” menu item. Click on the Run icon (the green play
button on the tool bar) or hit the F9 hot key. The project will be compiled and you should see a main
application window appear with the caption “Form1”.
Click on the close button to end the program and return back to the IDE. You’ve built your first
FireMonkey Windows 32-bit application! Your IDE is ready to help you create FireMonkey applications.
Page 17
E-Learning Series: Getting Started with Windows and Mac Development
Page 18
E-Learning Series: Getting Started with Windows and Mac Development
We will cover more about building database applications for Windows and Mac in Lesson 6.
The platform assistant does more than just facilitate debugging. You can also use IDE and the platform
assistant to deploy your application and any additional files that your application needs. For example,
your application might need additional DLLs, INI files, data files, bitmaps, etc.
In order to use the IDE to develop cross-platform applications, you need to install and run the Platform
Assistant on the target platform. The Platform Assistant file name is 'PAServer', the remote application
server. If you use the default port number (64211), you should be able to use the Platform Assistant
without changing any parameters.
Page 19
E-Learning Series: Getting Started with Windows and Mac Development
You will need to transfer the PAServer installer to your Mac OS X machine, and run the installation. The
Mac PAServer installer can be found at:
PAServer is version specific for each version of the IDE. If you install a new version of the IDE, you must
uninstall and reinstall and re-install the PAServer version that comes with the new version of the IDE.
For example, when we released Update 4 of XE2, there was also an updated version of the Platform
Assistant.
To uninstall the Platform Assistant: On Windows use the existing Uninstall PAServer.exe to uninstall the
Platform Assistant. On the Mac, use the existing Uninstall command to uninstall the Platform Assistant.
Note: The Uninstall programs are located in the installation directory for the Platform Assistant on the
PC and on the Mac.
To install the updated Platform Assistant on your target platforms: On Windows double-click
PAServer.exe. On the Mac, move the PAServer.zip file to the Mac and double-click PAServer.zip.
./paserver
PAServer will ask you to provide a Remote Profile password to allow the RAD Studio IDE to connect to
your Mac. You can define a remote password, or leave it blank. PAServer will then display “Acquiring
permission to support debugging…” and a dialog box will pop up with the text “Developer Tools Access is
trying to take control of another process. Type your password to allow this”. Enter your Mac
administrator name and password and press click the “Take Control” button.
Page 20
E-Learning Series: Getting Started with Windows and Mac Development
Notes:
The Developer Tools Access dialog only appears the first time you start the Platform Assistant
during any session on the Mac. If you do not enter the correct password (or if you press Cancel),
the message failed is displayed on the Mac, followed by “You will be prompted for Developer
Tools Access the next time you start the debugger.”
You can run and deploy your OS X applications for the rest of your session on the Mac (but you
cannot yet debug). When you attempt to run with debugging (such as Run or F9), the Developer
Tools Access dialog box appears. You need to log on to Developer Tools Access in order to debug
your OS X application using the IDE.
To delay the Developer Tools Access step, start the Platform Assistant with the -
nopermissioncheck command-line option: ./paserver –nopermissioncheck. This option delays
the need to enter the password for Developer Tools Access until you actually debug an
application.
Page 21
E-Learning Series: Getting Started with Windows and Mac Development
Page 22
E-Learning Series: Getting Started with Windows and Mac Development
Notes:
The scratch directory is used by the Platform Assistant for temporary file operations, including
remote profiles and project files.
The .passfile is a password file that contains an encrypted password for the Platform Assistant;
you can share this file with anyone who needs to use the connection, without compromising the
privacy of the password.
In the project window of the IDE (it is on the upper right hand side), right mouse click on the “Target
Platforms” node for the project and select “Add platform…” and choose “OS X” from the platform list
and click the OK button.
Expand the “Target Platform” node in the project window and right mouse click on the “OS X” target to
bring up a popup menu and choose the “Assign Remote Profile…” menu item. Next, click the “Add…”
button, in the “Select Remote Profile for OSX Platform” window to start the remote profile wizard. Give
your remote profile a name (“MyMac”) and click the “Next” button.
Page 23
E-Learning Series: Getting Started with Windows and Mac Development
The Remote Profile wizard next asks you for the Host Name (or IP address) of your Mac. Also, notice
that the wizard lists the default port number used by PAServer (you can change the port number to
match the number you set in PAServer). If you set a password for the PAServer, key the same password
in the wizard dialog. Click the “Test Connection” to make sure you’ve entered the right information. If
you get the “connection succeeded” dialog, click the “Ok” button. Click the “Next” button in the wizard.
Page 24
E-Learning Series: Getting Started with Windows and Mac Development
The final step in creating a remote profile (C++Builder projects only) allows you to set up a list of
directory paths needed by the C++ compiler and linker. If you are building Delphi FireMonkey
applications you can click the “Finish” button to complete the remote profile.
If you are building C++ FireMonkey applications, this is where you can specify the location of Mac
header files and libraries to be processed. The wizard will populate the remote paths lists with the
standard Mac paths.
Note for C++ developers: If you are using Xcode 4.3.x or later, Apple has bundled the include files, library
files and other files into the Xcode app bundle, so there won’t be any files found in the “/usr/include”
and “/usr/lib” folders. In order for the RAD Studio IDE to be able to cache information from these files,
Page 25
E-Learning Series: Getting Started with Windows and Mac Development
you need to install the Xcode command line tools. In Xcode choose the Xcode > Preferences menu item
and in the preferences window, click on the Downloads icon. If you’ve already installed the command
line tools you will see the following information:
If you have not installed the Xcode command line tools, click on the Install button to the right of the
Command Line Tools entry.
You can also click the “Add a new path item” button to enter additional paths for any additional Mac
include and library files.
Page 26
E-Learning Series: Getting Started with Windows and Mac Development
After you’ve added any additional paths on your remote machine, click the “Finish” button on the
Create remote profile window. Your Mac remote profile is now setup.
Click the “OK” button to select the remote Mac OS X profile for your project.
Check to make sure that you can compile and run the empty form application on your Mac. Click on the
Run icon (the green play button on the tool bar) or hit the F9 hot key.
Page 27
E-Learning Series: Getting Started with Windows and Mac Development
If you are building a C++ project and this is the first time you’ve used your Mac remote profile, a warning
dialog will pop up saying that a local cache for profile “MyMac” was not found and asks you if you would
like to update the profile now. Click the “Yes” button. If you are building a Delphi project, you will not
see this warning dialog.
The project will be compiled and you should see a main application window appear on your Mac with
the caption “Form1”.
Click on the close button to end the program on your Mac. Return back to the IDE. You’ve built your
first FireMonkey Mac application!
Page 28
E-Learning Series: Getting Started with Windows and Mac Development
In order to build, run, debug, and deploy iOS apps on the Mac, you need to join one or two Apple
developer programs, obtain a code-signing certificate, and create provisioning profiles (all described in
this section). You can join the Apple Mac and iOS developer programs as an individual developer or as a
member (or leader) of a team in an enterprise (business) program or university program. For more
information about the developer programs, see http://developer.apple.com/programs/which-program/.
After you join a program and log in using your Apple Developer ID, you will find the appropriate
platform- and program-specific documentation available to you. Please use the Apple documentation as
your principal guide.
Gives you your Apple Developer ID. A Registered Apple Developer user ID is required for iOS
application development.
Gives you access to the basic software tools (such as Xcode and iOS SDK) that you need in order
to develop applications on the Mac platform (part of FireMonkey iOS development occurs on
the Mac).
Enables you to test your iOS apps using simulators in Xcode.
Gives you the Apple documentation about iOS development.
Allows you to report bugs and attend Apple developer events.
Gives you access to developer tools, pre-release software, and technical support
Enables you to place your completed iOS applications in the Mac App Store.
Gives you access to the portal through which you create the Development Provisioning Profile,
which is necessary for running your applications to development iOS devices.
For additional information about joining the Apple iOS Developer's Program,
see http://developer.apple.com/support/ios/enrollment.html.
Page 29
E-Learning Series: Getting Started with Windows and Mac Development
To build iOS applications (Delphi and RAD Studio only), use the following installation and setup steps on
your development Mac:
1. Install Xcode on the Mac (once you are a member of the iOS Developer Program, you can obtain
a download of the specific required versions of Xcode and the iOS SDK by visiting the iOS
downloads area on the Apple Developer Portal).
2. Find the FireMonkey-iOS.dmg disk image file on your development PC and transfer it to the
Mac. The FireMonkey-iOS.dmg is typically installed in the RAD Studio installation location,
under the “C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\FireMonkey-iOS” directory:
3. On the Mac, open FireMonkey-iOS.dmg and run the two installer packages:
fpc-2.6.0.intel-macosx.pkg
FireMonkey-iOS-XE2.pkg
Page 30
E-Learning Series: Getting Started with Windows and Mac Development
RAD Studio iOS projects must be exported as Xcode projects to run on the iOS simulator or iOS device.
The dpr2xcode utility, installed in the “/bin” directory, performs this export for you.
You must run dpr2xcode at least once for each project to generate the initial Xcode project, and run
dpr2xcode again whenever changes or additional files are added to the project. Dpr2xcode saves the
project files (the ones you need for iOS development on the Mac) in an Xcode folder inside your project
directory. You need to transfer the Xcode folder to the Mac in order to continue iOS app development. I
use a shared folder so that I can work on the design and code in my RAD Studio IDE and compile, debug
and run in Xcode on my Mac.
Adding a Tools menu item makes it easy to run dpr2xcode within RAD Studio. To automate dpr2xcode,
follow these instructions:
Page 31
E-Learning Series: Getting Started with Windows and Mac Development
Make sure you check to see that you have installed the FireMonkey for iOS software. We’ll use the File
> New > FireMonkey HD iOS – Delphi project wizard. Save the project using File > Save All and put the
project in a shared folder where your Mac can get at it (I named the folder and project “FirstiOSApp”).
Select Tools > Export to Xcode (to use dpr2xcode to create the Xcode project and files). Move to your
Mac, start Xcode and load the Xcode version of the project, (which is in the Xcode sub-folder) named
“FirstiOSApp.xcodeproj”.
Click the “Run” button to compile and execute the app using an iOS simulator that is installed (or on
your iOS device if that is provisioned and connected). If the iOS application builds and runs, then your
setup is ready for you to get started with iOS application development.
Page 32
E-Learning Series: Getting Started with Windows and Mac Development
This information should get you started if you need to get a head start building iOS applications. There
are a few additional steps required to be able to provision your iOS device, Code-Sign your application
and upload your iOS applications to the Apple AppStore. We will focus more attention on building iOS
applications later in this E-Learning Series.
In Lesson 1 you were introduced to building Windows and Mac application using the FireMonkey
business application platform. You learned how to download, install and setup the RAD Studio
environment. You installed the Platform Assistant Server (PAServer) and created a remote profile to
enable you to build applications for Windows and Mac using one codebase. Finally, you learned how to
install the FireMonkey for iOS tools and how to join the Apple Developer programs for Mac and iOS.
In Lesson 2, you’ll see how to create your first Windows and Mac desktop applications using Delphi and
C++. Delphi developers will also create your first iOS application.
Page 33
E-Learning Series: Getting Started with Windows and Mac Development
In the meantime, here are some things to do, articles to read and videos to watch to enhance what you
learned in Lesson 1 and to prepare you for lesson 2.
To Do Items
If you don’t own and/or haven’t installed RAD Studio XE2, Delphi XE2 or C++Builder XE2, download the
free trial and follow the Lesson 1 course book to install and setup XE2. Make sure you know how to use
the File > New project wizards to create and test that your installation is complete and your
development environment is set up. This will prepare you to take part in future lessons.
Q&A:
Here are some of the answers for the questions I’ve received (so far) for this lesson. I will continue to
update this Course Book during and after course.
Q: I can't see David I's Mac screen on the Delphi lesson 1 webinar.
A: Attendees couldn't see the Mac demos in the Delphi lesson because I didn't log in to “Go to Webinar”
using the Mac client. Sorry :( The Delphi lesson 1 replay has the Mac parts. Sorry for my mistake. It will
not happen in future webinars.
Q: Can I compile my Delphi applications for windows and Mac on my windows machine to send it to a
friend who uses a Mac without using PAServer?
A: Yes, compiling a Mac OS X application is done in the Windows IDE using our compiler for the Mac.
You can grab the Mac application bundle in the OSX32 sub-folder for your project and give it to friends
who have Macs.
Page 34
E-Learning Series: Getting Started with Windows and Mac Development
Q: Can iOS code only be generated from a Delphi codebase? Or are there plans to translate C++ source
as well?
A: In XE2 we are supporting FireMonkey development for iOS using Delphi. Our R&D teams are working
on next generation compilers that will support ARM processors to allow you to build native code
applications for iOS and Android.
Q: Will XE2 have a set of iOS styles and icons so XE2 apps look like iPhone apps? Or do we have to supply
our own icons and styles? (Apple is really picky about look and feel of apps they sell in their App Store)
A: FireMonkey applications are being accepted by Apple. Several Apps are already in the App Store.
You have full control over the look of your FireMonkey applications using styles.
Q: Has the licensing of XE2 DataSnap changed so developers can use it in commercial apps without
paying royalties?
A: That changed a very long time ago. When you purchase the Enterprise or Architect edition of our
products, you can deploy DataSnap with your applications without any royalties.
Q: Can FM iOS apps be installed on other people's iPhone without going through the Apple App Store?
A: Yes, using so called AdHoc deployment. You can also use Xcode and a USB cable to deploy apps to
connected iOS devices.
Q: Will there be a Database Connector SDK? I use databases which you don't natively support. I'd like to
have the tools to connect them correctly.
A: You can use DBExpress, ODBC, ADO and other database connector technologies with FireMonkey.
You can connect direct to SQLite on iOS using calls from your FireMonkey iOS applications. Anders
Ohlsson showed a FireMonkey SQLite iOS example on his blog at
http://blogs.embarcadero.com/ao/2011/10/04/39146
Q: I have everything setup and working for iOS 5.0 but I can't send anything to a device because they are
all iOS 5.1. If I update to the latest Xcode will Free Pascal and FireMonkey still work?
A: In order to do iOS 5.1 you will need to upgrade to Xcode 4.3 and Lion. FireMonkey for iOS works with
iOS 5.1. Read Anders Ohlsson’s blog post at http://blogs.embarcadero.com/ao/2012/03/16/39235 for
additional information and comments. Anders also has a large number of blog posts about iOS
development with FireMonkey. You can find the list at http://blogs.embarcadero.com/ao/category/ios.
Page 35
E-Learning Series: Getting Started with Windows and Mac Development
A: TeeChart Lite for FireMonkey is included with XE2. Steema Software has the full version of TeeChart
for FireMonkey. You can find additional product information at
http://www.steema.com/entry/71/TeeChart_2C_RAD_Studio_XE2__26_FireMonkey
Q: When I get XE2 updates, do I need to install them in order or just grab the latest update?
A: The XE2 even numbered updates require that you uninstall and reinstall the product. The odd
numbered updates can be run as regular updates.
Q: Why don’t we see FireMonkey components like there are for VCL?
A: The source code for FireMonkey is in the product, just like it is for the VCL. If you are asking about
additional third party components for FireMonkey, several of our technology partners are shipping
(and/or working on) FireMonkey components including Steema Software
(http://www.steema.com/entry/71), TMS Software (http://www.tmssoftware.com/site/tiw.asp,
http://www.tmssoftware.com/site/tmsfmxpack.asp,
http://www.tmssoftware.com/site/tmsfmxtableview.asp), Mitov Software (http://www.mitov.com/)
and Fast Reports(http://www.fast-report.com/en/news/9497.html).
Q: Would be great to see David I in our University of Wolverhampton England. We need XE2 workshop
in our Uni? Would you like to come and do workshop in our Uni?
A: I would be very happy to do a workshop at your university if I am invited and we can work it into my
travel schedule to Europe (I am in the UK several times each year).
Q: What XE2 update # do you recommend to have installed for programming FMX apps?
A: Update 4. A hot fix for Update 4 is coming shortly, and I would recommend using it as soon as it
comes out.
Page 36
E-Learning Series: Getting Started with Windows and Mac Development
A: Delphi and C++ customers can upgrade to RAD Studio until the end of June 2012. Offer details are
available at http://www.embarcadero.com/radoffer
Q: FireMonkey seems to be very GUI-centric at this point, but how much of the VCL is leveraged (can be
leveraged)? For example, TComponent is used as a common ancestor, and there's a new TControl and
TForm, etc. It took years to develop the VCL, so I'm assuming it will take some time to get FireMonkey
to a mature state.
A: FireMonkey is a new business application platform. It is a modern platform abstraction layer built on
top of industry standard graphics libraries and hardware for building High Definition and 3D
applications. FireMonkey is built on years of Embarcadero’s component development experience.
FireMonkey is already available on Win32, Win64, Mac OSX and iOS. FireMonkey works with most of
the non-visual controls that Delphi and C++Builder developers have been using for years. FireMonkey
works with the runtime libraries that have been available for many releases of our tools. It is being used
by developers all over the world. Apple has already accepted several FireMonkey based iOS apps in
their App Store. FireMonkey will continue to grow and evolve to meet the platform, hardware and
software architectures for years to come.
Q: How soon are we going to see Delphi XE2 books in the market?
A: As soon as the authors complete their books. We've been told that Bob Swart and Marco Cantu are
both working on XE2 books :)
Q: I have help update 4, when I use check for updates, I get a message that there are no updates
available. How can I get help update 5?
A: Information about XE2 help update 5 is available at
http://docwiki.embarcadero.com/RADStudio/en/Readme_-
_Help_Update_5_for_Delphi_and_C%2B%2BBuilder_XE2
Q: If I am running XE2 on 64-bit Windows (in a Mac virtual machine), can I test 32-bit applications on the
same 64-bit Windows platform or do I need to target it to a different 32 bit platform. If on same
platform, do I need a remote profile and pa server to create/run the 32 bit app on the 64 bit system?
A: You can compile, debug and run Delphi Win32 and Win64 and C++ Win32 applications on a 64-bit
Windows machine. If you are running the IDE on 32-bit Windows you can compile 32-bit and 64-bit
Page 37
E-Learning Series: Getting Started with Windows and Mac Development
applications but you will need to use PAServer running on 64-bit Windows target to be able to deploy
and debug the application.
Q: The FireMonkey 30 day trial will not cover the timeframe for the entire course. Will the trial be
extended?
A: My hope is that you will see the value and productivity using FireMonkey during the first few lessons
and upgrade to XE2. If not, I will work with our sales teams to see about extending the trial period.
Q: Is the Project Indy set of TCP/IP components an individual package or part of the RAD studio? Can it
be used on Mac OS too?
A: Project Indy components are included in XE2 and work on both Windows and Mac.
Q: I am running XE2 Enterprise on Win7-32. I have FireMonkey HD in my File/New menu, but not the list
of FireMonkey choices that “David I” has. Am I missing something?
A: David has customized his menu. Use the File > New > Other… menu item and you'll see all of the
project choices. To customize your File > New menu, use the File > New > Customize menu item.
Page 38
E-Learning Series: Getting Started with Windows and Mac Development
Q: After class, I installed RAD Studio XE2 Architect trial. I need a better understanding of the various
editions so I'll research that.
A: The Architect editions contain everything you need to create a variety of applications. We have 5
different editions: Starter, Professional, Enterprise, Ultimate and Architect at different price points.
Which edition you need depends on what types of applications you are going to build. Each comes with
FireMonkey (Starter Edition is Windows only). You can take a look at the Feature Matrix for each of the
products to see what is included in each of the editions for Delphi, C++Builder and RAD Studio. Each
feature matrix is linked on the right hand column of each product page on our web site:
http://www.embarcadero.com/products/cbuilder/cbuilder-feature-matrix.pdf
http://www.embarcadero.com/products/delphi/delphi-feature-matrix.pdf
http://www.embarcadero.com/products/rad-studio/rad-studio-feature-matrix.pdf
Q: Should I drop this class if I don't know C++? I am an experienced VBA programmer, and took two
semesters of Java in 2007. Should I still follow along just to learn using FireMonkey?
A: You don't specifically need to know C++ or Delphi to follow either of the courses. You can do a lot of
work with no or few lines of code - depending on how much business logic code you need to write.
Since you have a lot of VBA experience - you might have an easier time with the Delphi course. In the
programming language lecture, I will just cover some of the programming things you need to know to
work with FireMonkey - I am not going to try and teach a whole programming language in 30 minutes :)
There are plenty of videos and tutorials on the Internet about programming in Delphi and C++ to help
you:
Delphi:
Page 39
E-Learning Series: Getting Started with Windows and Mac Development
C++:
1. With RAD Studio XE2 (the combination of Delphi XE2 and C++Builder XE2) you can create native code
applications for:
a) Win 32
b) Win 64
c) Mac OS X
d) Apple iOS
e) All of the above
2. What RAD Studio tool allows the IDE to debug and deploy applications to Mac and other remote
Windows machines?
a) Remote debugger
b) Remote desktop
c) PAServer
d) Dpr2Xcode
Page 40
E-Learning Series: Getting Started with Windows and Mac Development
a) True
b) False
4. What do we call the feature that allows you to create connection information for remote computers?
a) Remote Desktop
b) Remote Profile
c) Cross Platform Configuration
d) Remote Configuration
Page 41