Python API¶
Contents:
objc
– The PyObjC bridge- Introduction
- Weak references
- Associated Objects
- Utilities
- Accessing classes and protocols
- Dynamic modification of classes
- Plugin bundles
- Memory management
- Test support
- Framework wrappers
- Types
- Constants
- Objective-C type strings
- Context pointers
- Descriptors
- Interacting with
@synchronized
blocks - Archiving Python and Objective-C objects
- Properties
- Unconvertable pointer values
- “FILE*” support
PyObjCTools
– UtilitiesPyObjCTools.KeyValueCoding
– Key-Value Coding APIPyObjCTools.AppHelper
– Work with AppKitPyObjCTools.Conversion
– Convert data structuresPyObjCTools.NibClassBuilder
– Magic NIBsPyObjCTools.MachSignals
– signal handling in a CFRunLoopPyObjCTools.Signals
– Debug signal handlingPyObjCTools.TestSupport
– Testing helperspyobjc_options()
sdkForPython()
fourcc()
cast_int()
cast_longlong()
cast_uint()
cast_ulonglong()
os_release()
os_level_key()
is32Bit()
onlyIf()
onlyPython2()
onlyPython3()
onlyOn32Bit()
onlyOn64Bit()
min_sdk_level()
max_sdk_level()
min_os_level()
max_os_level()
TestCase
TestCase.run()
TestCase.assertItemsEqual()
TestCase.assertGreaterThan()
TestCase.assertGreaterThanOrEquals()
TestCase.assertLessThan()
TestCase.assertLessThanOrEquals()
TestCase.assertIs()
TestCase.assertIsNot()
TestCase.assertIsNone()
TestCase.assertIsNotNone()
TestCase.assertSstartswith()
TestCase.assertHasAttr()
TestCase.assertNotHasAttr()
TestCase.assertIsInstance()
TestCase.assertIsNotInstance()
TestCase.assertAlmostEquals()
TestCase.assertIn()
TestCase.assertNotIn()
TestCase.assertIsCFType()
TestCase.assertIsOpaquePointer()
TestCase.assertIsNullTerminated()
TestCase.assertResultIsNullTerminated()
TestCase.assertArgIsNullTerminated()
TestCase.assertResultIsVariableSize()
TestCase.assertArgIsVariableSize()
TestCase.assertArgSizeInResult()
TestCase.assertArgIsPrintf()
TestCase.assertResultIsCFRetained()
TestCase.assertResultIsNotCFRetained()
TestCase.assertArgIsCFRetained()
TestCase.assertArgIsNotCFRetained()
TestCase.assertResultIsRetained()
TestCase.assertResultIsNotRetained()
TestCase.assertArgIsRetained()
TestCase.assertArgIsNotRetained()
TestCase.assertResultHasType()
TestCase.assertResultIsBOOL()
TestCase.assertArgHasType()
TestCase.assertArgIsBOOL()
TestCase.assertArgIsFunction()
TestCase.assertResultsFunction()
TestCase.assertResultIsBlock()
TestCase.assertArgIsBlock()
TestCase.assertArgIsSEL()
TestCase.assertArgIsFixedSize()
TestCase.assertResultSizeInArg()
TestCase.assertArgSizeInArg()
TestCase.assertArgIsOut()
TestCase.assertArgIsIn()
TestCase.assertArgIsInOut()