omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Are ctypes and/or PyObjC support possible?

    Pythonista
    3
    4
    3832
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • roger
      roger last edited by

      Seems like PyObjC does work in iOS, at least on a jailbroken device:

      • http://www.saurik.com/id/5
      • http://stackoverflow.com/questions/5999366/python-hello-world-in-pyobjc-on-iphone
      • https://code.google.com/p/ios-python-objc/

      Also there's another iOS Python package that seems to include ctypes support:

      • http://pythonforios.com/updates/update1.5.php

      Not sure how hard they'd be to add to Pythonista, or even if Apple would allow them, but with them we'd presumably be able to support all iOS features in Python, after writing the appropriate wrappers.

      (Sorry if this has been asked before BTW)

      1 Reply Last reply Reply Quote 0
      • Dalorbi39
        Dalorbi39 last edited by

        PyObjc, ive fought with that several times this year. Once had a fight that lasted a month, i still couldnt get it to work. Same with Java ObjC.

        However i have working:
        C, Obj-C, lua, ruby, perl, python, bash and java (v. 1 or 2) compilers and interpreters with:

        C <-- GCC (Cydia)

        Lua <-- Lua (Cydia)

        Perl <-- Perl (Cydia)

        Python <-- Python (Cydia) and Pythonista (App store)

        Ruby <-- Ruby (Cydia)

        Java <-- (Cydia)

        Obj-C <-- Theos (Cydia and various sources)

        PHP <-- Kodiak (App store)

        Html <-- Kodiak

        Obj-Lua <-- ScriptKit (App Store)

        Javascript <-- PR0C0D1N6 (App Store)

        Processing.js <-- PR0C0D1N6

        Bash <-- with (Cydia)

        (C++ <-- G++ Soon C++ will be mine, Soon)

        (Yes i know, i couldnt possibly need all these tools but im a language whore, like someone else i know, and i trying to learn as much as possible before my 16th birthday)

        I can go for months without touching the computer with these tools and my wireless keyboard. My Obj-C compiler comes with templates for tweaks and apps and can be compiled straight into a neat little package to go on Cydia, although it has it's hiccups it has always seen me through my minute long compile times and with a file browser (iFile) with full root permissions, everything is so much better.

        Hopefully i've convinced you to Jailbreak

        EDIT: i didnt answer your question did i?

        1 Reply Last reply Reply Quote 0
        • roger
          roger last edited by

          Alas there's no jailbreak for my device, and I'd still like to see support for these in an official app.

          1 Reply Last reply Reply Quote 0
          • pudquick51
            pudquick51 last edited by

            See my comment here:

            http://omz-software.com/pythonista/forums/discussion/105/xcode-objective-c-functions-and-python-bindings#Item_3

            ctypes works only in very very limited form (even in Python for iOS) in legitimate app store apps. Good for C structures / data types, illegal to use for loading/running native code.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors