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.


    Objc_util NOOB

    Pythonista
    2
    2
    1509
    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.
    • sulcud
      sulcud last edited by

      Hi everyone, I am trying to understand how I can use the objc_util module, this because it’s inporta to me to know it for any future project, actually I only know :

      Import objc_util as oc
      
      X=oc.ObjCClass(‘CMAttitude’)
      

      How can I use this? For example like

      Import x_module
      
      Variable=x_module.y_function(any_value)
      
      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        The objc_util module comes with extensive documentation (click the help button in the console, then click on Pythonista Modules, and fine objc_util). Have you skimmed it to see if your question is answered there? The docs contain several examples. There are also a few fully worked examples in the Examples/ObjC folder. Searching google for objc_util pythonista also brings up dozens of examples.

        It wasn't clear from your question whether you are trying to understand the CMAttitude class, or if you are asking in general how to use imports. Maybe rephrase your question, to be a little more specific about what you have tried.

        I find when using objc_util, the best way to work is using the console, because then autocomplete shows you method names, which makes it easier than translating objective c code yourself. Then when things are working, I translate it into wrappers, etc. Post what you have so far, and we can surely help

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