Home/Patches

Region monitoring, including background on iOS

By | 2016-07-13T18:17:30+00:00 July 13, 2016 6:17 pm|Code tips, Patches|

Get started with region monitoring (including in the background) on iOS with some how-to's on fixing the Delphi RTL source for the LocationSensor. In an earlier article, I described some changes you'd need to make in order to make monitoring of location changes work in the background with Delphi 10 Seattle. This article is aimed [...]

Performing background fetches on iOS

By | 2017-02-16T18:02:35+00:00 June 18, 2016 5:46 pm|Code tips, Patches|

This article relates to any version of Delphi (or at least it should work) that can target iOS 7 or greater. The demo project was created using Delphi 10.1 Berlin. There's been the odd post to the Embarcadero forums as well as on StackOverflow about how to implement background fetches on iOS. Partly because it's [...]

Allowing an iOS app to run in the background

By | 2016-05-26T17:31:37+00:00 May 26, 2016 5:24 pm|Code tips, Patches|

NOTE: This article is about allowing your iOS app to run when it goes into the background (i.e. another app becomes active) for a short period (up to 3 minutes on iOS 9, at least). It does not relate to having the UIBackgroundModes option, an example of which is here. As some of you will [...]

Building OpenSSL dylibs for iOS simulator

By | 2017-08-31T17:53:43+00:00 March 5, 2016 9:33 am|Code tips, Patches, Resources|

NOTE: This article relates to using dylibs with iOS simulator only. If you're building your app for iOS device, you should link against the static libraries. See this link. Firstly, a couple of thanks: To Doron Adler, who created a fork of a script, of which mine is based on, and who gave some [...]

Fixing a detail insert bug in FireDAC with LiveBindings

By | 2017-02-16T18:02:36+00:00 April 23, 2015 8:19 am|Code tips, Patches|

I've recently started a project in Delphi XE8 that has me using Delphi a lot more again. It's designed to be cross-platform, however for now the GUI side uses VCL controls, so the initial iteration is going to be restricted to Windows. I'll be re-using the back end however, so FireDAC was chosen for database [...]

Adding Javascript processing capability to TWebBrowser in iOS

By | 2014-10-19T14:32:06+00:00 November 6, 2013 10:04 am|Code tips, Patches, Uncategorized|

UPDATE: If you're using Delphi XE7, the TWebBrowser component now includes the method EvaluateJavascript (does the same thing as what my GetJavaScript result does), and applies to both iOS and Android. In a post on the Embarcadero forums some time ago, Charles Vinal asked about whether it would be possible to have TWebBrowser implement the stringByEvaluatingJavaScriptFromString [...]

Plugging a couple of leaks in Firemonkey in Delphi XE5

By | 2017-02-16T18:02:36+00:00 November 4, 2013 1:33 pm|Patches, Uncategorized|

NOTE: If you have read this post before, it has been updated recently to include further changes that remove all leaks generated by the demo project. Recently there was a posting in the Embarcadero forums about problems with creating a secondary form, showing it modally, then destroying it; namely that the app exits without warning [...]

Coping with the Virtual Keyboard Done bar and clicking controls on the iOS7 simulator

By | 2014-10-14T19:14:58+00:00 October 29, 2013 3:23 pm|Patches, Uncategorized|

If you've installed update 1 for XE5, you'll soon find that there's a couple of issues that have moved from the device to the simulator; namely the placement of the Virtual Keyboard "Done" bar, and clicking of controls is vertically askew. These two posts relate to the issues: http://delphi.radsoft.com.au/2013/10/coping-with-done-bar-on-ios7-devices/ http://delphi.radsoft.com.au/2013/10/coping-with-clicking-controls-on-ios7-devices/ First the patch for clicking [...]

Show Buttons
Hide Buttons