Friday, October 28, 2011

Writing a component for iOS

I just published an article that discusses my implementation of the accelerometer - Writing a component for iOS using Delphi XE2 and FireMonkey.

Enjoy!

13 comments:

  1. As mentioned before: you really should use {$mode delphi} instead of {$mode objfpc}{$h+} in your sample code if you want to make it as easy as possible
    a) for people used to Delphi to reuse their existing code
    b) for people to reuse as much code as possible that's written now in a future version of Delphi that will directly support iOS instead of leveraging FPC for that purpose.

    Both Delphi and ObjFPC mode can be combined with {$modeswitch objectivec1} to enable Objective-Pascal constructs. Additionally, since Delphi only supports recent Mac OS X and iOS versions, you should probably use {$modeswitch objectivec2} instead to enable for-in for Objective-C data structures that conform to the "fast enumeration" protocol: http://wiki.freepascal.org/FPC_PasCocoa#Fast_enumeration

    ReplyDelete
  2. The only real stumbler I have to making great FireMonkey iOS apps is that I can't react to callback messages without hacking the FMX_Platform_iOS.pas file. Things like responding to low memory, device rotation, or other callbacks to the UIViewController sub class. It seems to be easy and strait forward to just copy FMX_Platform_iOS.pas to my project and make the changes. This however, could be a bad thing when FireMonkey is updated. Have you run into this problem? Any good solutions? - Thanks for all your great examples!

    ReplyDelete
  3. @Chuck: That's exactly what I've been doing so far. Hopefully this can be worked into an update at some point.

    ReplyDelete
  4. Thanks for all your work on this firemonkey stuff.

    From ios 5 on there is a possibility to speak into the iPad /iphone to put text in a textbox or memofield.

    But application will crash then in an firemonkey app. Is there a way to deactivate the speech-Button in the keyboard-layout, so that the user can not use this functionality?

    OK, better would be, that would work in firemonkey, but in the meantime could this perhaps be a solution.

    br.
    HS

    ReplyDelete
  5. ugg フリップフロップ
    メンズ ugg http://www.warmjpbloom.com/

    ReplyDelete
  6. I don't forget a few seasons ago when Louis Vuitton debuted detachable fox tails on the Spring 2010 runway and absolutely everyone threw a fit over how silly and tacky and unreasonable they have been.Double straps, gold hardware and also a large amount of storage space makes this bag wonderful for countless occasions. The strap up there is convertible from a regular-length hobo strap to a longer, hip-slung hobo strap.Mostly due to the nature of high-low collaborations (study: as a result of PVC ickiness), I in no way have much hope for the handbags and "leather" goods that will come out of these sorts of partnerships.When we begin to speak about handbag classics and staples, brands like Chanel and Hermes and Louis Vuitton are thrown around.You are able to usually be certain though that eLUXURY will bring you the must haves from our favourite designer brands, like Louis Vuitton, Dior, Fendi, Marc Jacobs, Versace, & Tods just to name a few.The only factor that I'd like to see different within this bag can be a bigger shape.It truly is general public knowledge that i am not a lover on the Indy, however the idea driving the shape in the bag is fine.Louis Vuitton bags are the most researched items on the forum, according to Dusil, who said he created the forum as a favor to his bag-loving fiancee and co-founder, Meaghan Mahoney.("His photographs weren't retouched," a Visionaire staffer added.This small bag features a perfectly vintage feel and enough space for all your every day essentials with out becoming huge sufficient to appear like you might in fact be delivering mail.

    ReplyDelete
  7. I want to personally thank you for the outstanding presentation. It was by far the best I have ever received. The enthusiasm you generate is contagious. Dick F.

    ReplyDelete
  8. Woah this site can be superb i like learning your site content. Keep up to date the truly amazing paintings! You are aware of, loads of folks want all-around because of this information and facts, you may help these people tremendously.. diamond wedding bands for women

    ReplyDelete
  9. Hey there! This is my 1st comment here so I just wanted
    to give a quick shout out and tell you I genuinely enjoy reading your posts.
    Can you suggest any other blogs/websites/forums that go over the same
    topics? Thanks for your time!

    ReplyDelete
  10. Thank you for the good writeup. It in reality was a entertainment account it.
    Glance complicated to far delivered agreeable from you!
    By the way, how can we communicate?

    ReplyDelete
  11. With havin so much written content do you ever run into any issues of plagorism or copyright infringement?
    My site has a lot of exclusive content I've either
    created myself or outsourced but it appears a lot of it is popping it
    up all over the web without my authorization. Do you know any solutions to help prevent content
    from being ripped off? I'd really appreciate it.

    ReplyDelete
  12. Hi there, its pleasant piece of writing regarding
    media print, we all be aware of media is a great source of information.

    Check out my page - custom assignment writing service

    ReplyDelete

Note: Only a member of this blog may post a comment.