
FireMonkey™ Development for iOS and OS X with Delphi™ XE2 Graeme Chandler From the WYN (What You Need) Series 2 Copyright © 2012 Graeme Chandler All Rights Reserved This material is protected by copyright. Some of this material is drawn from sources on the Internet, Embarcadero documentation and newsgroups. I will give credit where I am able to (or remember to). Please accept my apologies if I have omitted to give appropriate credit (and let me know). The information is provided as-is and is, to the best of my knowledge and experience, correct at the time of writing. This material should not be regarded as exhaustive or be relied upon to guarantee brilliant, bug free and dependable software. That is what your experience and testing are for. In other words, Coogara Consulting cannot be held responsible for your use of this material. I welcome your comments and feedback to improve this material and my own knowledge of Delphi, FireMonkey, OS X, iOS, Apple and associated hardware software and technologies. Delphi and FireMonkey are trademarks or registered trademarks of Embarcadero. Apple, OS X and iOS are trademarks or registered trademarks of Apple Inc. Windows is a trademark or registered trademark of Microsoft Corporation. Pentium is a registered trademark of Intel. 3 Table of Contents About the Author .......................................................................................................12 Introduction................................................................................................................13 A note about spelling ...............................................................................................13 Who is this book for?...............................................................................................13 The structure of this book ........................................................................................14 Abbreviations...........................................................................................................15 Source code..............................................................................................................15 Book format .............................................................................................................15 Training....................................................................................................................15 Third Party Products ................................................................................................15 Part 1. Overview and Setup ......................................................................................16 1. About FireMonkey.............................................................................................16 What is FireMonkey ................................................................................................16 FireMonkey Support in Delphi XE2 Editions .........................................................16 Platform Requirements (according to Embarcadero) ..............................................17 How does Delphi Support each Platform?...............................................................18 Delphi Libraries .......................................................................................................18 FireMonkey Libraries ..............................................................................................20 2. Preparing for Cross Platform Development....................................................22 Connecting to a Mac ................................................................................................22 3. Preparing for OS X Development ....................................................................25 Installing Support for OS X development ...............................................................25 The Platform Assistant.............................................................................................25 Delphi Remote Profile .............................................................................................28 Writing a Test OS X Application.............................................................................29 4. Preparing for iOS Development .......................................................................35 Installing Support for iOS Development .................................................................35 Obtaining the Right Version of Xcode ....................................................................35 Installing Xcode.......................................................................................................38 Xcode 4.2 Installation ..........................................................................................38 Installing Delphi XE2 FireMonkey Packages......................................................40 Xcode 4.3 Installation ..........................................................................................42 Avoiding Moving to Lion (Staying on Snow Leopard)...........................................45 Writing a Test Application.......................................................................................45 Simplifying Access to a Windows Share.............................................................52 Testing on an iOS Device ........................................................................................54 Signing up for the iOS Developer Program.........................................................54 Provisioning.........................................................................................................56 Using Xcode.............................................................................................................65 The Organiser.......................................................................................................65 Navigators............................................................................................................67 Project Summary..................................................................................................68 Project Info/Settings.............................................................................................69 4 Part 2. FireMonkey Nuts and Bolts..........................................................................70 5. Inside FireMonkey.............................................................................................70 Global Variables ......................................................................................................70 Component Categories.............................................................................................71 Forms .......................................................................................................................72 Placing Components ............................................................................................73 Scaling..................................................................................................................74 Frames..................................................................................................................74 TControl...................................................................................................................76 Parenting ..............................................................................................................76 Align ....................................................................................................................76 AutoTranslate.......................................................................................................78 CanClip, ClipChildren, ClipParent ......................................................................78 DesignVisible.......................................................................................................79 Margins ................................................................................................................79 Padding ................................................................................................................79 Position ................................................................................................................80 RotationAngle......................................................................................................80 RotationCenter .....................................................................................................80 Scale.....................................................................................................................81 6. Image Controls...................................................................................................82 TImage (Shapes Category) ......................................................................................82 TImageControl (Standard Category) .......................................................................82 TImageViewer (Additional Category).....................................................................83 TPaintBox ................................................................................................................84 TImage3D (3D Layers Category) ............................................................................85 7. Button Controls..................................................................................................86 TButton (Standard Category)...................................................................................86 TSpeedButton (Additional Category)......................................................................86
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages21 Page
-
File Size-