If anyone needs a bridge for SceneKit I have https://github.com/scj643/objc_tools/blob/master/objc_tools/scenekit/sk_scene.py
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.
Posts made by scj643
-
RE: [SOLVED] First attempt to integrate ARkit and first questions...
-
TrueTone and disabling it programmatically
I've been working a lot with private libs and this one has stumped me.
THe way true tone overriding works is on the Info.plist as defined at https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW31I want to be able to make it so I can change this during the runtime (sometimes i notice flickers of true tone turning off which is probably an iOS issue)
-
RE: objc_util wishlist
It doesn't actually say what type it wants
examplev = UIView.new() v.setAlpha_('t')
-
RE: Include more custom fonts
Might be able to hack it in with objc_util Also one can install fonts system wide as well. Using a configuration payload.
-
objc_util wishlist
I have found myself using
objc_util
a whole lot. Heck my pride and joy of a library is made with itSome things I wish
objc_util
had areBetter ways of responding to blocks.
A block should have it's own accessible class that functions within the block can access. Also a block should be self contained and not having to push to a global variable
class Block(object): def __init__(self): self.someValue = 1 def callOnFinish(self, passed_value): self.someValue = passed_value
Better type error handling
Currently
objc_utils
throws very cryptic errors when a type issue happens with an objc function. The type expected should be stated in the errorError objects
If something has an option that is an
NSError
a built in part of objc_util should provide that. (I currently have an implementation but it's strange)Though in all I'm still really happy with
objc_util
-
Header parser
I have started a really really rough base for an objc header parser. You would give it headers and it would give you formated enums for the constants in it.
-
RE: Keyboard shortcuts (Physical)
http://nshipster.com/uikeycommand/ Seems subclasses need to be able to become first responders
-
RE: We need a FAQ
@Evan03Davis I wouldn't use wikidot I would have some sort of github wiki
-
RE: Keyboard shortcuts (Physical)
I plan on adding this feature to my objc_tools lib like many other features.
-
RE: Apple Acquires Popular Automation App Workflow
This shouldn't be an issue for us since we never have gotten on the front page of the App Store or an App Store Editor Choice
-
RE: For the fun, a Photos cube
I actually need people to help make an API for scenekit so we can do this type of stuff with a python AI
-
RE: Objc_tools Library
I also need people to help with documentation and refactoring
-
RE: Autoplay mp4 video in WebView
If you are on slack I can discuss my module in more detail.
-
RE: Autoplay mp4 video in WebView
My objc_tools library has view's for AV players which can do autoplay
https://github.com/scj643/objc_tools/blob/master/objc_tools/ui/av.py
You would want to use a PlayerLayerView
-
Help wanted for objc library
I am looking for people that are willing to contribute to my objc module that I've been making.
https://github.com/scj643/objc_tools
My plan is to have it be the definitive module for bridging with objc with simple python functions.
-
ObjC handling for c functions
This code is useful for handling c functions that should return ObjCInstances
https://github.com/scj643/objc_tools/blob/master/objc_tools/c/objc_handler.pyfrom objc_util import ObjCInstance, c_void_p def chandle(result, func, args): '''chandle Handles c_void_p to objc type use as a errcheck for a ctypes function >>> cfunc.restype = c_void_p >>> cfunc.errcheck = chandle ''' if isinstance(result, (c_void_p, int)) and result: return ObjCInstance(result) if __name__ == '__main__': from objc_util import * from objc_util import c MRMediaRemoteCopyPickableRoutes = c.MRMediaRemoteCopyPickableRoutes MRMediaRemoteCopyPickableRoutes.restype = c_void_p MRMediaRemoteCopyPickableRoutes.errcheck = chandle t=MRMediaRemoteCopyPickableRoutes()```
-
RE: WIFI SSID
@omz Ah a c function I'm going to have to remember that for my objc_tools network submodule