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
-
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)
-
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