API Notes: SpriteKit framework

Introduction

An introduction to PyObjC describes the general method for translating Objective-C calls into Python calls, including the handling of pass-by-reference arguments and buffers.

This document describes where the PyObjC bindings for this framework are different from the general rule, such as mentioning APIs that are not supported or where the interface is different than expected.

The full API is described in Apple’s documentation, both the C and Objective-C APIs are available (but see the API Notes below).

These bindings are accessed through the SpriteKit package (that is, import SpriteKit).

API Notes

  • vector_float3: Values of this type are represented as tuples of 3 floats in Python.

  • +[SKFieldNode customFieldWithEvaluationBlock:]

    This method is not supported yet (requires changes to the core bridge)

Note

This framework is only available on OSX 10.9 and later and requires a 64-bit binary.