The tests and examples have only been run with 64-bit Python 2.7.14
and 3.6.4 (with VLC 2.2.6 and 3.0.1) and only on macOS 10.13.3 High
Sierra.
|
|
abspath(path)
Return an absolute path. |
|
|
|
|
dirname(p)
Returns the directory component of a pathname |
|
|
|
|
NSLog(fmt,
*args)
Formatted write to the console. |
|
|
|
|
NSMakePoint(x,
y)
Return an NSPoint instance for the given x and y. |
|
|
|
|
NSMakeRect(x,
y,
w,
h)
Return an NSRect instance for the given point and size. |
|
|
|
|
NSMakeSize(w,
h)
Return an NSSize instance for the given w and h. |
|
|
|
|
add_ivar(cls,
name,
ctype)
Add an instance variable to an Objective-C class, see also
DeallocObserver below. |
|
|
|
|
add_method(cls,
selName,
method,
signature)
Add a method to an Objective-C class. |
|
|
|
|
add_subclass(supercls,
name,
register=False,
**ivars)
Create a new sub-class of the given super-class. |
|
|
|
|
get_cfunctype(signature,
codes=None)
Get the ctypes function type for a given signature type
encoding. |
|
|
|
|
get_class(name)
Get a registered Objective-C class by name. |
|
|
|
|
get_classes(*prefixes)
Yield all loaded Objective-C classes with a name starting with one of
the given prefixes. |
|
|
|
|
get_classname(cls)
Get the name of an Objective-C class. |
|
|
|
|
get_classof(obj)
Get the Objective-C class of an object. |
|
|
|
|
get_inheritance(cls)
Yield the inheritance of an Objective-C class in bottom-up order. |
|
|
|
|
get_ivar(obj,
name,
ctype=None)
Get the value of an instance variable. |
|
|
|
|
get_ivars(cls,
*prefixes)
Yield all instance variables of an Objective-C class with a name
starting with one of the given prefixes. |
|
|
|
|
get_lib(name)
Find and load the .dylib library. |
|
|
|
|
get_metaclass(name)
Get a registered Objective-C metaclass by name. |
|
|
|
|
get_method(cls,
name)
Get a method of an Objective-C class by name. |
|
|
|
|
get_methods(cls,
*prefixes)
Yield all methods of an Objective-C class with a name starting with
one of the given prefixes. |
|
|
|
|
get_properties(cls_or_proto,
*prefixes)
Yield all properties of an Objective-C class or protocol with a name
starting with one of the given prefixes. |
|
|
|
|
get_protocol(name)
Get a registered Objective-C protocol by name. |
|
|
|
|
get_protocols(cls,
*prefixes)
Yield all protocols of an Objective-C class with a name starting with
one of the given prefixes. |
|
|
|
|
get_selector(name)
Get an Objective-C selector (cmd) by name. |
|
|
|
|
get_superclassof(obj)
Get the Objective-C superclass of an object. |
|
|
|
|
isClass(obj)
Return True if the Objective-C object is a class. |
|
|
|
|
isInstanceOf(obj,
*Classes,
**c_types)
Return True if the Objective-C object is an instance of any of the
given Objective-C classes. |
|
|
|
|
isMetaClass(obj)
Return True if the Objective-C object is a metaclass. |
|
|
|
|
leaked2()
Return the number of memory leaks and the total number of bytes
leaked. |
|
|
|
|
ns2py(nsObj,
default=None)
Convert an (instance of an) NS/CFObject to the equivalent Python type
and value. |
|
|
|
|
nsArray2listuple(nsArray,
ctype=<class 'ctypes.c_void_p'>)
Create a Python list or tuple from an NS/CFArray. |
|
|
|
|
nsBoolean2bool(nsBool,
default=None)
Create a Python bool from an NS/CFBoolean. |
|
|
|
|
nsData2bytes(nsData,
default='')
Create Python bytes from NS/CFData. |
|
|
|
|
nsDecimalNumber2decimal(nsDecimal)
Create a Python Decimal from an NS/CFDecimalNumber. |
|
|
|
|
nsDictionary2dict(nsDict,
ctype_keys=<class 'ctypes.c_void_p'>,
ctype_vals=<class 'ctypes.c_void_p'>)
Create a Python dict from an NS/CFDictionary. |
|
|
|
|
nsNull2none(nsNull)
Creat Python None from an NS/CFNull. |
|
|
|
|
nsNumber2num(nsNumber,
default=None)
Create a Python decimal, int or float from an NS/CFNumber. |
|
|
|
|
nsSet2set(nsSet,
ctype=<class 'ctypes.c_void_p'>)
Create a Python set or frozenset from an NS/CFSet. |
|
|
|
|
nsString2str(nsString,
default=None)
Create a Python string or unicode from an NS/CFString. |
|
|
|
|
py2NS(pyobj)
Convert an (instance of a) Python object into an instance of an NS... |
|
|
|
|
register_subclass(subcls)
Register an Objective-C subclass, see also DeallocObserver below. |
|
|
|
|
send_message(receiver,
selName,
*args,
**resargtypes)
Send message to the given receiver. |
|
|
|
|
send_super(receiver,
selName,
*args,
**resargtypes)
Send message to the superclass of the given receiver. |
|
|
|
|
set_ivar(obj,
name,
value,
ctype=None)
Set an instance variable of an Objective-C object to the given value. |
|
|
|
|
split_emcoding2(encoding,
start=0)
Split the type encoding of a method signature into separate,
single encodings and the combined encoding. |
|
|
|
|
split_encoding(encoding)
Split a type encoding into separate type encodings. |
|
|
|
|
NSUsualWindowMask = 15
|
|
|
CGFloatEncoding = 'd'
|
|
|
CGImageEncoding = '{CGImage=}'
|
|
|
NSAlphaShiftKeyMask = 65536
|
|
|
NSAlternateKeyMask = 524288
|
|
|
NSAnyEventMask = 4294967295
|
|
|
NSApplication = <ObjCClass NSApplication at 140735626076272>
|
|
|
NSApplicationActivationPolicyAccessory = 1
|
|
|
NSApplicationActivationPolicyProhibited = 2
|
|
|
NSApplicationActivationPolicyRegular = 0
|
|
|
NSApplicationDefined = 15
|
|
|
NSApplicationDidHideNotification = c_void_p(140735622819760)
|
|
|
NSApplicationDidUnhideNotification = c_void_p(140735622819856)
|
|
|
NSApplicationPresentationDefault = 0
|
|
|
NSApplicationPresentationDisableHideApplication = 256
|
|
|
NSApplicationPresentationDisableProcessSwitching = 32
|
|
|
NSApplicationPresentationHideDock = 2
|
|
|
NSApplicationPresentationHideMenuBar = 8
|
|
|
NSArray = <ObjCClass NSArray at 140735632965600>
|
|
|
NSAutoreleasePool = <ObjCClass NSAutoreleasePool at 1407356375...
|
|
|
NSBackingStoreBuffered = 2
|
|
|
NSBackingStoreNonretained = 1
|
|
|
NSBackingStoreRetained = 0
|
|
|
NSBeginFunctionKey = 63274
|
|
|
NSBezierPath = <ObjCClass NSBezierPath at 140735626076552>
|
|
|
NSBorderlessWindowMask = 0
|
|
|
NSClosableWindowMask = 2
|
|
|
NSColor = <ObjCClass NSColor at 140735626078472>
|
|
|
NSCommandKeyMask = 1048576
|
|
|
NSControlKeyMask = 262144
|
|
|
NSData = <ObjCClass NSData at 140735632965800>
|
|
|
NSDecimalNumber_ = <ObjCClass NSDecimalNumber at 140735637589320>
|
|
|
NSDefaultRunLoopMode = c_void_p(140735631966584)
|
|
|
NSDeleteFunctionKey = 63272
|
|
|
NSDictionary = <ObjCClass NSDictionary at 140735632965920>
|
|
|
NSEndFunctionKey = 63275
|
|
|
NSEnumerator = <ObjCClass NSEnumerator at 140735632965960>
|
|
|
NSEventTrackingRunLoopMode = c_void_p(140735622814448)
|
|
|
NSFlagsChanged = 12
|
|
|
NSFunctionKeyMask = 8388608
|
|
|
NSHelpKeyMask = 4194304
|
|
|
NSHomeFunctionKey = 63273
|
|
|
NSImage = <ObjCClass NSImage at 140735626005792>
|
|
|
NSInsertFunctionKey = 63271
|
|
|
NSIntegerEncoding = 'q'
|
|
|
NSKeyDown = 10
|
|
|
NSKeyUp = 11
|
|
|
NSMenu = <ObjCClass NSMenu at 140735626007472>
|
|
|
NSMenuItem = <ObjCClass NSMenuItem at 140735626007552>
|
|
|
NSMiniaturizableWindowMask = 4
|
|
|
NSMutableArray = <ObjCClass NSMutableArray at 140735632966240>
|
|
|
NSMutableData = <ObjCClass NSMutableData at 140735632966280>
|
|
|
NSMutableDictionary = <ObjCClass NSMutableDictionary at 140735...
|
|
|
NSMutableSet = <ObjCClass NSMutableSet at 140735632966400>
|
|
|
NSMutableString = <ObjCClass NSMutableString at 140735637593680>
|
|
|
NSNull = <ObjCClass NSNull at 140735632966440>
|
|
|
NSNumber = <ObjCClass NSNumber at 140735637593960>
|
|
|
NSNumericPadKeyMask = 2097152
|
|
|
NSObject = <ObjCClass NSObject at 140735736934720>
|
|
|
NSOpenGLCPSwapInterval = 222
|
|
|
NSOpenGLPFAAccelerated = 73
|
|
|
NSOpenGLPFAAcceleratedCompute = 97
|
|
|
NSOpenGLPFAAccumSize = 14
|
|
|
NSOpenGLPFAAllRenderers = 1
|
|
|
NSOpenGLPFAAllowOfflineRenderers = 96
|
|
|
NSOpenGLPFAAlphaSize = 11
|
|
|
NSOpenGLPFAAuxBuffers = 7
|
|
|
NSOpenGLPFAAuxDepthStencil = 57
|
|
|
NSOpenGLPFABackingStore = 76
|
|
|
NSOpenGLPFAClosestPolicy = 74
|
|
|
NSOpenGLPFAColorFloat = 58
|
|
|
NSOpenGLPFAColorSize = 8
|
|
|
NSOpenGLPFACompliant = 83
|
|
|
NSOpenGLPFADepthSize = 12
|
|
|
NSOpenGLPFADoubleBuffer = 5
|
|
|
NSOpenGLPFAFullScreen = 54
|
|
|
NSOpenGLPFAMPSafe = 78
|
|
|
NSOpenGLPFAMaximumPolicy = 52
|
|
|
NSOpenGLPFAMinimumPolicy = 51
|
|
|
NSOpenGLPFAMultiScreen = 81
|
|
|
NSOpenGLPFAMultisample = 59
|
|
|
NSOpenGLPFANoRecovery = 72
|
|
|
NSOpenGLPFAOffScreen = 53
|
|
|
NSOpenGLPFAPixelBuffer = 90
|
|
|
NSOpenGLPFARemotePixelBuffer = 91
|
|
|
NSOpenGLPFARendererID = 70
|
|
|
NSOpenGLPFARobust = 75
|
|
|
NSOpenGLPFASampleAlpha = 61
|
|
|
NSOpenGLPFASampleBuffers = 55
|
|
|
NSOpenGLPFASamples = 56
|
|
|
NSOpenGLPFAScreenMask = 84
|
|
|
NSOpenGLPFASingleRenderer = 71
|
|
|
NSOpenGLPFAStencilSize = 13
|
|
|
NSOpenGLPFAStereo = 6
|
|
|
NSOpenGLPFASupersample = 60
|
|
|
NSOpenGLPFAVirtualScreenCount = 128
|
|
|
NSOpenGLPFAWindow = 80
|
|
|
NSOpenPanel = <ObjCClass NSOpenPanel at 140735626011912>
|
|
|
NSPageDownFunctionKey = 63277
|
|
|
NSPageUpFunctionKey = 63276
|
|
|
NSPointEncoding = '{CGPoint=dd}'
|
|
|
NSRangeEncoding = '{_NSRange=QQ}'
|
|
|
NSRectEncoding = '{CGRect={CGPoint=dd}{CGSize=dd}}'
|
|
|
NSResizableWindowMask = 8
|
|
|
NSScreen = <ObjCClass NSScreen at 140735626015832>
|
|
|
NSSet = <ObjCClass NSSet at 140735632966600>
|
|
|
NSShiftKeyMask = 131072
|
|
|
NSSizeEncoding = '{CGSize=dd}'
|
|
|
NSSquareStatusItemLength = -2
|
|
|
NSStatusBar = <ObjCClass NSStatusBar at 140735626018792>
|
|
|
NSString_ = <ObjCClass NSString at 140735637597800>
|
|
|
NSThread = <ObjCClass NSThread at 140735637598160>
|
|
|
NSTitledWindowMask = 1
|
|
|
NSTrackingActiveInActiveApp = 64
|
|
|
NSTrackingCursorUpdate = 4
|
|
|
NSTrackingMouseEnteredAndExited = 1
|
|
|
NSTrackingMouseMoved = 2
|
|
|
NSUIntegerEncoding = 'Q'
|
|
|
NSURL = <ObjCClass NSURL at 140735632966880>
|
|
|
NSUtilityWindowMask = 16
|
|
|
NSVariableStatusItemLength = -1
|
|
|
NSView = <ObjCClass NSView at 140735626025032>
|
|
|
NSWindow = <ObjCClass NSWindow at 140735626025592>
|
|
|
NSZeroPoint = NSPoint(0, 0)
|
|
|
NSZoneEncoding = '{_NSZone=}'
|
|
|
OBJC_ASSOCIATION_COPY = 771
|
|
|
OBJC_ASSOCIATION_COPY_NONATOMIC = 3
|
|
|
OBJC_ASSOCIATION_RETAIN = 769
|
|
|
OBJC_ASSOCIATION_RETAIN_NONATOMIC = 1
|
|
|
PyObjectEncoding = '{PyObject=@}'
|
|
|
kCFAllocatorDefault = c_void_p(None)
|
|
|
kCFRunLoopDefaultMode = c_void_p(140735631966584)
|
|
|
kCFStringEncodingASCII = 1536
|
|
|
kCFStringEncodingISOLatin1 = 513
|
|
|
kCFStringEncodingMacRoman = 0
|
|
|
kCFStringEncodingNonLossyASCII = 3071
|
|
|
kCFStringEncodingUTF16 = 256
|
|
|
kCFStringEncodingUTF16BE = 268435712
|
|
|
kCFStringEncodingUTF16LE = 335544576
|
|
|
kCFStringEncodingUTF32 = 201326848
|
|
|
kCFStringEncodingUTF32BE = 402653440
|
|
|
kCFStringEncodingUTF32LE = 469762304
|
|
|
kCFStringEncodingUTF8 = 134217984
|
|
|
kCFStringEncodingUnicode = 256
|
|
|
kCFStringEncodingWindowsLatin1 = 1280
|
|
|
kCGBitmapAlphaInfoMask = 31
|
|
|
kCGBitmapByteOrder16Big = 12288
|
|
|
kCGBitmapByteOrder16Little = 4096
|
|
|
kCGBitmapByteOrder32Big = 16384
|
|
|
kCGBitmapByteOrder32Little = 8192
|
|
|
kCGBitmapByteOrderDefault = 0
|
|
|
kCGBitmapByteOrderMask = 28672
|
|
|
kCGBitmapFloatComponents = 256
|
|
|
kCGImageAlphaFirst = 4
|
|
|
kCGImageAlphaLast = 3
|
|
|
kCGImageAlphaNone = 0
|
|
|
kCGImageAlphaNoneSkipFirst = 6
|
|
|
kCGImageAlphaNoneSkipLast = 5
|
|
|
kCGImageAlphaOnly = 7
|
|
|
kCGImageAlphaPremultipliedFirst = 2
|
|
|
kCGImageAlphaPremultipliedLast = 1
|
|
|
kCGImagePropertyGIFDelayTime = c_void_p(140735638804776)
|
|
|
kCGImagePropertyGIFDictionary = c_void_p(140735638801288)
|
|
|
kCGRenderingIntentDefault = 0
|
|
|
kCTFontAttributeName = c_void_p(140735635398032)
|
|
|
kCTFontBoldTrait = 2
|
|
|
kCTFontFamilyNameAttribute = c_void_p(140735635422928)
|
|
|
kCTFontItalicTrait = 1
|
|
|
kCTFontSymbolicTrait = c_void_p(140735635362864)
|
|
|
kCTFontTraitsAttribute = c_void_p(140735635423056)
|
|
|
kCTFontWeightTrait = c_void_p(140735635362896)
|