The tests and examples have only been run with 64-bit Python 3.13.2,
3.12.7. 3.11.5 and 2.7.18 using Python-VLC
3.0.21, 3.0.18, 3.0.16, 3.0.12, 3.0.11, 3.0.10, 3.0.8, 3.0.6, 3.0.4 and
2.2.8 (with the compatible VLC App) on macOS 15.4-3.2 Sequoia (on
arm64
natively only), 14.7.3 Sonoma, 13.2 Ventura,
12.0.1 Monterey, 11.6.1 and 11.5.2 Big Sur (aka 10.16), 10.15.7
Catalina, 10.14.6 Mojave or 10.13.6 High Sierra. The tests run with
and without lazy import
in Python 3.
|
LazyImportError
Raised if lazy import is not supported, disabled or
failed.
|
|
Adict
A dict with key and attribute access to the
items and callable to add items.
|
|
AlertPanel
Python Type to show an alert, wrapping ObjC NSAlert .
|
|
Allocator_t
ObjC CFAllocatorRef type.
|
|
App
Python App Type, wrapping an ObjC
NSApplication .
|
|
Array_t
|
|
AutoResizeError
AutoResize option error.
|
|
BOOL_t
ObjC boolean type.
|
|
Block_t
ObjC block type.
|
|
BrowserPanel
Python Type to show a URL or file.
|
|
BuiltInScreen
DEPRECATED on 2025.03.16, use Screens.BuiltIn .
|
|
CFIndex_t
|
|
CFRange_t
ObjC struct with fields loc[ation] and
len[gth] (both CFIndex_t ).
|
|
CGBitmapInfo_t
|
|
CGDirectDisplayID_t
|
|
CGError_t
|
|
CGFloat_t
|
|
CGGlyph_t
|
|
CGPoint_t
ObjC struct with fields x and
y (both CGFloat_t ).
|
|
CGRect_t
ObjC struct with fields origin and
size (NSPoint_t , NSSize_t ).
|
|
CGSize_t
ObjC struct with fields width and
height (both CGFloat_t ).
|
|
CMYColor
Color in the Cyan-Magenta-Yellow space.
|
|
CTFontOrientation_t
|
|
CTFontSymbolicTraits_t
|
|
Cache2
DEPRECATED on 2025.02.15, to be removed.
|
|
Class_t
ObjC Class type, encoding b'#'.
|
|
Color
Base Color class wrapping NSColor
objects, intended specifically to avoid fatal exceptions
when accessing non-applicable NSColor
attributes.
|
|
ColorError
Color issue.
|
|
Data_t
|
|
DeepestScreen
DEPRECATED on 2025.03.16, use Screens.Deepest .
|
|
Dict
Python dict Type, wrapping an ObjC
NSMutableDictionary .
|
|
Dictionary_t
|
|
ErrorPanel
Python Type to show an NSError alert, wrapping ObjC
NSAlert .
|
|
ExternalScreen
DEPRECATED on 2025.03.16, use Screens.External .
|
|
Font
Python Font Type, wrapping ObjC NSFont .
|
|
FontError
Font selection error.
|
|
FontTraitError
Font traits error.
|
|
Frame
A screen frame, wrapping ObjC NSRect_t.
|
|
FrozenDict
Python immutable dict Type, wrapping an (immutable)
ObjC NSDictionary .
|
|
FrozenSet
Python frozenset Type, wrapping an immutable ObjC
NSSet .
|
|
GrayScaleColor
Color in the Gray-Scale space.
|
|
HSBColor
Color in thecHue-Saturation-Brightness space.
|
|
IMP_t
ObjC IMPlementation type.
|
|
Id_t
ObjC Id/self type, encoding b'@'.
|
|
Item
Python menu Item Type, wrapping ObjC NSMenuItem .
|
|
ItemSeparator
Python menu ItemSeparator Type, wrapping ObjC
NSMenuItem.separatorItem .
|
|
Ivar_t
ObjC instance variable type.
|
|
LazyAttributeError
Raised if an attribute can't be lazily imported .
|
|
List
Python list Type, wrapping an ObjC
NSMutableArray .
|
|
MainScreen
DEPRECATED on 2025.03.16, use Screens.Main .
|
|
MediaWindow
Media window Python Type, wrapping ObjC
NSWindow/NSView .
|
|
Menu
Python Menu Type, wrapping ObjC NSMenu .
|
|
MenuBar
Python MenuBar Type, wrapping ObjC NSMenu .
|
|
Method_t
ObjC method type.
|
|
NSDecimal
Optimized, Python NSDecimalNumber class.
|
|
NSDouble_t
|
|
NSExceptionError
Python Error wrapping an ObjC/NSException .
|
|
NSFloat_t
|
|
NSInteger_t
|
|
NSMakePoint
ObjC struct with fields x and
y (both CGFloat_t ).
|
|
NSMakeRange
ObjC struct with fields loc[ation] and
len[gth] (both NSUInteger_t ).
|
|
NSMakeRect
ObjC struct , like NSRect_t with different signature and properties.
|
|
NSMakeSize
ObjC struct with fields width and
height (both CGFloat_t ).
|
|
NSPoint_t
ObjC struct with fields x and
y (both CGFloat_t ).
|
|
NSRange_t
ObjC struct with fields loc[ation] and
len[gth] (both NSUInteger_t ).
|
|
NSRect4_t
ObjC struct , like NSRect_t with different signature and properties.
|
|
NSRect_t
ObjC struct with fields origin and
size (NSPoint_t , NSSize_t ).
|
|
NSSize_t
ObjC struct with fields width and
height (both CGFloat_t ).
|
|
NSStr
Python wrapper for the ObjC NS[Constant]String .
|
|
NSTimeInterval_t
|
|
NSUInteger_t
|
|
NumberType_t
|
|
Number_t
|
|
OSlibError
Couldn't find or load a macOS .dylib library.
|
|
ObjCBoundClassMethod
Python wrapper for a bound ObjC class method, only to distinguish
bound class from bound instance methods.
|
|
ObjCBoundMethod
Python wrapper for a bound ObjC instance method, an IMP_t.
|
|
ObjCClass
Python wrapper for an ObjC class.
|
|
ObjCClassMethod
Python class representing an unbound ObjC class method, only to
distinguish class methods from instance methods.
|
|
ObjCConstant
Python wrapper for an ObjC constant.
|
|
ObjCDelegate
Register the _NS_Delegate._ObjC (sub)class and create
an ObjCClass(_NS_Delegate.__name__) .
|
|
ObjCInstance
Python wrapper for an ObjC instance.
|
|
ObjCMethod
Python class representing an unbound ObjC instance method, actually
an IMP_t.
|
|
ObjCSubclass
Python class creating an ObjC sub-class of an existing ObjC
(super)class.
|
|
ObjC_t
Base type to pretty-print ctypes c_void_p .
|
|
OpenPanel
Python Type to select a file, wrapping ObjC
NSOpenPanel .
|
|
OptionFlags_t
|
|
Paper
Python Paper Type, wrapping an opaque ObjC
PMPaper .
|
|
PaperCustom
Create a custom Paper.
|
|
PaperMargins
Python PaperMargins Type, wrapping an ObjC
PMPaperMargins .
|
|
Point
Python Type, wrapping an ObjC NSPoint_t .
|
|
Point2
Python Type, like Point, different signature.
|
|
Printer
Python Printer Type, wrapping ObjC
NSPrinter and PMPrinter .
|
|
Protocol_t
ObjC protocol type.
|
|
Proxy1ce
Decorator for a lazily evaluated dict or lazily imported module or
singleton, avoiding circular imports and providing access to
the dict's items or the singleton's or module's attributes.
|
|
RGBColor
Color in the Red-Green-Blue space.
|
|
Rect
Python Type, wrapping an ObjC NSRect_t.
|
|
Rect4
Python Type, like Rect, but signature as ObjC NSRect4_t.
|
|
RunLoop_t
ObjC CFRunLoopRef type.
|
|
SEL_t
ObjC SELector/cmd type, encoding b':' .
|
|
SavePanel
Python Type to save a file, wrapping ObjC NSSavePanel .
|
|
Screen
Screen Python Type, wrapping ObjC NSRect_t.
|
|
SegfaultError
Error raised instead of SEGFAULT, see module pycocoa.faults.
|
|
Set
Python set Type, wrapping an ObjC
NSMutableSet .
|
|
Set_t
|
|
Size
Python Type, wrapping an ObjC NSSize_t .
|
|
Size2
Python Type, like Size, different signature.
|
|
Str
Python str Type, wrapping (immutable) ObjC
NSStr[ing] .
|
|
StrAttd
Python str Type, wrapping (immutable) ObjC
NSAttributedString .
|
|
String_t
|
|
Struct_t
ObjC struct type.
|
|
Table
Python rows and columns {Table} Type, wrapping an ObjC
NSTableView .
|
|
TableWindow
Python Type for a vertically scrollable window, wrapping ObjC
NSWindow/NSScrollView .
|
|
TextPanel
Scrollable text panel Python Type, wrapping ObjC
NSAlert .
|
|
TextWindow
Scrollable text window Python Type, wrapping ObjC
NSWindow/NSView .
|
|
Tile
Dock tile for an App, wrapping an ObjC NSDockTile .
|
|
TimeInterval_t
|
|
TintColor
Dynamic color, adaptable to vibrancy and accessibility
settings.
|
|
Tuple
Python tuple Type, wrapping an immutable ObjC
NSArray .
|
|
TypeCodeError
Error in ObjC type encoding.
|
|
TypeID_t
|
|
TypeRef_t
ObjC opaque type.
|
|
UIColor
Dynamic color for User-Interface elements, adaptable to
vibrancy and accessibility settings.
|
|
URL_t
ObjC URL type.
|
|
UniChar_t
|
|
Union_t
ObjC union type.
|
|
UnknownPtr_t
Unknown pointer.
|
|
Unknown_t
Unknown type.
|
|
VoidPtr_t
Same as c_void_p , but distinguishable from
c_void_p .
|
|
Window
Basic window Python Type, wrapping ObjC NSWindow .
|
|
WindowError
Window error.
|
|
WindowStyleError
Window style error.
|
|
at
Acronym NSStr.
|
|
c_ptrdiff_t
|
|
c_struct_t
Base type to pretty-print ctypes Structures .
|
|
frozendict
An immutable Python dict with key and attribute
access to the items.
|
|
module_property_RO
DEPRECATED on 2025.02.09, use Proxy1ce .
|
|
objc_method_description_t
ObjC struct with fields name and
types (SEL_t , c_char_p ).
|
|
objc_property_attribute_t
ObjC struct with fields name and
value (both c_char_p ).
|
|
objc_property_t
ObjC property Class.
|
|
objc_super_t
ObjC struct with fields receiver and
class (Id_t , Class_t ).
|
|
proxy_RO
DEPRECATED on 2025.04.03, use Proxy1ce .
|
|
unichar_t
|
|
None2NS(py)
Return the NSNull singleton for Python's
None . |
|
|
|
SIGs_enabled(*sigs)
Return the signals currently handled as fault . |
|
|
|
add_ivar(clas,
name,
ctype)
Add an instance variable to an ObjC class, |
|
|
|
add_method(clas,
name_,
method,
encoding)
Add a method to an ObjC class. |
|
|
|
add_protocol(clas,
protocol)
Add a protocol to an ObjC class. |
|
|
|
add_subclass(Super,
name,
register=False)
Create a new sub-class of a given super-class. |
|
|
|
|
|
aspect_ratio(width,
*height,
**Error_kwds)
Compute the smallest, integer aspect ratio. |
|
|
|
autoResizes(*options)
Return a combination of auto resize options, specified by name. |
|
|
|
bool2NS(py)
Create an NSBoolean from a Python bool . |
|
|
|
bytes2NS(py)
Create an NSData from Python bytes . |
|
|
|
bytes2repr(bytestr)
Represent bytes or str as
b"..." . |
|
|
|
bytes2str(bytestr,
dflt=missing,
**name)
Convert bytes /unicode to str
if needed. |
|
|
|
clipstr(bytestr,
limit=50)
Clip a string to the given length limit. |
|
|
|
closeTables()
Close all tables. |
|
|
|
decimal2NS(py)
Create an NSDecimal from a Python Decimal . |
|
|
|
dict2NS(py)
Create an NSMutableDictionary from a Python
dict or frozendict . |
|
|
|
dicts2NS(py)
Create an NS[Mutable]Dictionary from a Python
dict or frozendict . |
|
|
|
|
|
drain(objc)
Release all objects in an NSAutoreleasePool instance. |
|
|
|
enable(file=sys.stderr,
**unused)
Enable fault handling similar to the faulthandler module available in Python 3.3 and
later. |
|
|
|
errorf(fmtxt,
*args,
**file_flush_nl_nt_argv0)
Like printf, but writing to file=sys.stderr. |
|
|
|
exiting(status=None)
Get/set the exit and status to use after
fault s or uncaught
ObjC/NSException s. |
|
|
|
flint(f)
Return int for integer float . |
|
|
|
float2NS(py)
Create an NSDouble instance from a Python
float or int . |
|
|
|
|
|
fontNamesOf(family)
Yield the available font names of a family. |
|
|
|
fontTraits(*traits)
Return the traits mask for the named traits. |
|
|
|
fontTraitstrs(traits)
Return the font trait names for a traits mask. |
|
|
|
fontfamilies(*prefixes)
DEPRECATED on 25.03.13, use fontFamilies . |
|
|
|
fontnamesof(family)
DEPRECATED on 25.03.13, use fontNamesOf . |
|
|
|
fontsOf(family,
size=0,
weight=None)
Yield the available fonts of a family. |
|
|
|
fontsOf4(family)
Yield the available fonts of a family. |
|
|
|
fontsof(family,
**size_weight)
DEPRECATED on 25.03.13, use fontsOf . |
|
|
|
fontsof4(family)
DEPRECATED on 25.03.13, use fontsOf4 . |
|
|
|
frozendict2NS(py)
Create an NSDictionary from a Python
frozendict or dict . |
|
|
|
frozenset2NS(py)
Create an NSSet from a Python frozenset or
set . |
|
|
|
gcd(a,
b)
Calculate the Greatest Common Divisor of a and b. |
|
|
|
generator2NS(py,
frozen=True)
Create an NS[Mutable]Array from a Python
generator . |
|
|
|
|
|
get_c_func_t(encoding,
codes=None)
Get the ctypes function type for a given function
signature. |
|
|
|
get_class(name)
Get a registered ObjC class by name. |
|
|
|
get_classes(*prefixes)
DEPRECATED on 25.03.30, use get_classes2 . |
|
|
|
get_classes2(*prefixes)
Yield all loaded ObjC classes with a name starting with one of the
given prefixes. |
|
|
|
get_classes_len()
Get the number of ObjC classes loaded (int ). |
|
|
|
|
|
get_classnameof(objc,
dflt=missing)
Get the name of the ObjC class of an object. |
|
|
|
|
|
|
|
get_ivar(objc,
name,
ctype=None)
Get the value of an instance variable (ivar). |
|
|
|
get_ivars(clas,
*prefixes)
DEPRECATED on 25.03.30, use get_ivars4 . |
|
|
|
get_ivars4(clas,
*prefixes)
Yield all instance variables (ivar) of an ObjC class with a name
starting with one of the given prefixes. |
|
|
|
get_ivars_len(clas)
Get the number of instance variables (ivar) of an ObjC class
(int ). |
|
|
|
get_lib(name)
Find and load a .dylib library. |
|
|
|
get_libPC()
DEPRECATED on 25.02.25, use Libs.PrintCore . |
|
|
|
get_lib_framework(name,
services=' ApplicationServices ' ,
version='')
Load a Frameworks services name.framework
library. |
|
|
|
get_libs()
DEPRECATED on 25.02.25, use Libs . |
|
|
|
|
|
get_method(clas,
name)
Get a method of an ObjC class by name. |
|
|
|
get_methods(clas,
*prefixes)
DEPRECATED on 25.03.30, use get_methods4 . |
|
|
|
get_methods4(clas,
*prefixes)
Yield all methods of an ObjC class with a name starting with one of
the given prefixes. |
|
|
|
get_papers(*printers)
Yield the papers available at the given printer(s). |
|
|
|
get_printer(*prefixes)
Find a printer by name or by ID or get the default printer. |
|
|
|
|
|
get_printers(server=None)
Yield all printers available at the given server. |
|
|
|
get_properties(clas_or_proto,
*prefixes)
DEPRECATED on 25.03.30, use get_properties4 . |
|
|
|
get_properties4(clas_or_proto,
*prefixes)
Yield all properties of an ObjC class or protocol with a name
starting with one of the given prefixes. |
|
|
|
|
|
get_protocols(clas,
*prefixes)
DEPRECATED on 25.03.30, use get_protocols2 . |
|
|
|
get_protocols2(clas,
*prefixes)
Yield all protocols of an ObjC class with a name starting with one of
the given prefixes. |
|
|
|
get_resolutions(*printers)
Yield the resolutions supported by the given printer(s). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inst2strepr(inst,
strepr,
*attrs)
Convert an instance's attributes, maintaining the order. |
|
|
|
int2NS(py,
NS=None)
Create an NSNumber from a Python int or
long . |
|
|
|
isAlias(path)
Resolve a macOS file or folder alias. |
|
|
|
isClass(objc)
Check whether an object is an ObjC class. |
|
|
|
isImmutable(objc,
*immutableClasses,
**raiser_name)
Check that an ObjC object is an immutable class' instance. |
|
|
|
isLink(path)
Resolve a file or folder link or alias. |
|
|
|
isMetaClass(objc)
Check whether an object is an ObjC metaclass. |
|
|
|
isMutable(objc,
*mutableClasses,
**raiser_name)
Check that an ObjC object is a mutable class' instance. |
|
|
|
isNone(obj)
Return True if obj is None, NSMain.nil,
NSMain.Null , etc. |
|
|
|
isObjCInstanceOf(objc,
*Classes,
**raiser_name)
Check whether an ObjC object is an instance of some ObjC class. |
|
|
|
is_enabled(sig=None)
Check whether fault handling is enabled, similar to the
faulthandler module available in Python 3.3 and
later. |
|
|
|
isinstanceOf(inst,
*classes,
**raiser_name)
Check a Python instance' class. |
|
|
|
|
|
iterable2NS(py,
frozen=True)
Create an NS[Mutable]Array from a Python
iterable . |
|
|
|
iterbytes(bytestr)
Iterate bytes , yielding each as 1-str/byte . |
|
|
|
lambda1(arg)
Inlieu of lambda arg: arg. |
|
|
|
leaked2()
Return the number of memory leaks. |
|
|
|
list2NS(py)
Create an NSMutableArray from a Python list
or tuple . |
|
|
|
listuple2NS(py)
Create an NS[Mutable]Array from a Python
list or tuple . |
|
|
|
logf(fmtxt,
*args,
**file_flush_nl_nt_argv0)
Like printf, but writing to file=NSMain.stdlog. |
|
|
|
macOSver()
Return the macOS release as str . |
|
|
|
macOSver2(n=2)
Return the macOS release as 1-, 2- or 3-tuple of int s. |
|
|
|
machine()
Return the platform.machine string, distinguishing Intel
from emulating Intel on Apple Silicon (on macOS). |
|
|
|
map2NS(py,
frozen=True)
Create an NS[Mutable]Array from a Python
map . |
|
|
|
name2objc(name_)
Convert a (selector) name to bytes and ObjC naming
rules. |
|
|
|
name2py(name_)
Convert a (selector) name str and Python naming
conventions. |
|
|
|
name2pymethod(name_)
Convert a (selector) name to a valid Python callback method. |
|
|
|
ns2App(ns)
Get the App
instance from an NSApplication or an
NSNotification instance. |
|
|
|
ns2Item(ns)
Get the Python instance for an NSMenuItem . |
|
|
|
ns2NSType2(ns)
Get the main NS[Mutable]... class and Python Type. |
|
|
|
ns2Type(ns)
Convert an NS... ObjC object to an instance of the
corresponding Python Type, capital T!. |
|
|
|
ns2TypeID2(ns,
dflt=None)
Get the NS... ObjC TypeID . |
|
|
|
ns2Window(ns)
Get the Window instance for an ObjC NSWindow or
NSNotification instance. |
|
|
|
ns2py(ns,
dflt=missing)
Convert an ObjC class' instance to the equivalent Python standard
type's instance or wrapper and value. |
|
|
|
nsArray2listuple(ns,
ctype=<class 'ctypes.c_void_p'>,
typy=None)
Create a Python list or tuple from an
NS[Mutable]Array . |
|
|
|
nsArray2tuple(ns,
ctype=<class 'pycocoa.runtime.ObjCInstance'>,
typy=<type 'tuple'>)
Create a Python tuple from an immutable
NSArray . |
|
|
|
nsBoolean2bool(ns,
dflt=missing)
Create a Python bool from an NSBoolean . |
|
|
|
nsBundleRename(ns_title,
match=' Python ' )
Change the bundle title if the current title matches. |
|
|
|
|
|
|
|
nsDescription2dict(ns,
**defaults)
Create an immutable dict object with key
and attribute access to items by name. |
|
|
|
nsDictionary2dict(ns,
ctype_keys=<class 'ctypes.c_void_p'>,
ctype_vals=<class 'ctypes.c_void_p'>,
typy=None)
Create a Python dict or frozendict from an
NS[Mutable|Frozen]Dictionary . |
|
|
|
|
|
nsException(name=None,
reason=' not given ' ,
**info)
Create an ObjC/NSException instance. |
|
|
|
nsIter(ns,
reverse=False,
keys=False)
Iterate over an NS.. ObjC objects's keys, values or
reverse values. |
|
|
|
nsIter2(ns,
reverse=False,
keys=False)
Iterate over an NS.. ObjC objects's keys or (reverse)
values. |
|
|
|
nsLog(ns_fmt,
*ns_args)
Formatted ObjC write to the console. |
|
|
|
nsLogf(fmtxt,
*args)
Formatted write to the console. |
|
|
|
nsNull2none(ns)
Return Python None for an NS/CFNull or
nil . |
|
|
|
nsNumber2num(ns,
dflt=missing)
Create a Python Decimal , int or
float from an NSNumber . |
|
|
|
nsOf(inst)
Return the .NS ObjC object of a Python wrapper or Type
instance. |
|
|
|
nsRaise(name=None,
reason=' not given ' ,
**info)
Create an NSException and mimick @throw
NSException . |
|
|
|
nsSet2set(ns,
ctype=<class 'ctypes.c_void_p'>,
typy=None)
Create a Python set or frozenset from an
NS[Mutable]Set . |
|
|
|
nsString2str(ns,
dflt=None)
Create a Python str or unicode from an
NS[Mutable]Str[ing] . |
|
|
|
nsTextSize3(text,
ns_font=None)
Return the size of a multi-line text. |
|
|
|
nsTextView(text,
ns_font,
scroll=50)
Return an NSTextView for the given text string. |
|
|
|
nsThrow(nsExc)
Mimick ObjC's @throw NSException to raise an exception. |
|
|
|
nsURL2str(ns)
Create a Python str from NSURL string. |
|
|
|
nsValue2py(ns,
dflt=missing)
Create a Python instance from an NS[Concrete]Value . |
|
|
|
printf(fmtxt,
*args,
**file_flush_nl_nt_argv0)
Formatted print fmt % args with optional keywords. |
|
|
|
|
|
property2(inst,
name)
DEPRECATED on 25.02.16, to be removed. |
|
|
|
property_RO(method)
Decorator for Read_Only class/instance property. |
|
|
|
py2NS(py)
Convert (an instance of) a Python object into an instance of the
equivalent NS... ObjC class: |
|
|
|
range2NS(py,
frozen=True)
Create an NS[Mutable]Array from a Python
range . |
|
|
|
|
|
release(objc)
Release an ObjC instance to be deleted, eventually. |
|
|
|
retain(objc)
Preserve an ObjC instance from destruction. |
|
|
|
segfaulty()
Return True if SegfaultErrors are raised to prevent certain
SEGFAULTs, False if SEGFAULTs are not expected or
None if unknown. |
|
|
|
send_message(objc,
sel_name_,
*args,
**restype_argtypes)
Send message to an ObjC object. |
|
|
|
send_super(objc,
sel_name_,
*args,
**restype_argtypes)
Send message to the super-class of an ObjC object. |
|
|
|
send_super_init(objc)
Send 'init' message to the super-class of an ObjC object. |
|
|
|
set2NS(py)
Create an NSMutableSet from a Python set or
frozenset . |
|
|
|
|
|
set_ivar(objc,
name,
value,
ctype=None)
Set an instance variable of an ObjC object. |
|
|
|
sets2NS(py)
Create an NS[Mutable]Set instance from a Python
set or frozenset . |
|
|
|
sortuples(iterable)
DEPRECATED on 25.02.09, to be removed. |
|
|
|
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. |
|
|
|
str2NS(py)
Create an NSStr instance from a Python str . |
|
|
|
str2bytes(strbytes,
dflt=missing,
**name)
Convert strbytes to
bytes /unicode if needed. |
|
|
|
strs2NS(py,
frozen=True)
Create an NS[Mutable]String from a Python
str . |
|
|
|
terminating(app,
timeout=None)
Set up a separate thread to terminate an NSApplication app by
calling its .terminate_ method at the given
timeout in seconds. |
|
|
|
time2NS(py=None,
since=1970)
Create an NSDate instance from a timestamp. |
|
|
|
title2action(title)
Convert a menu item title to a Python callback method
name. |
|
|
|
tuple2NS(py)
Create an immutable NSArray instance from a Python
tuple or list . |
|
|
|
type2NS(py)
Create the NS... ObjC object for a Python Type (or
wrapper) instance. |
|
|
|
type2strepr(inst,
strepr=<type 'str'>,
**kwds)
Represent a Python Type instance as str or
repr . |
|
|
|
unicode2NS(py)
Create an NSStr instance from a Python
unicode string. |
|
|
|
unicodec(codec=None)
Get/set the unicode encoding, default "utf-8" . |
|
|
|
url2NS(py,
url2=None)
Create an NSURL instance from a Python string. |
|
|
|
windowStyles(*styles)
Return a combination of window styles, specified by name. |
|
|
|
z1000str(size,
sep='_')
Convert a size to string with 1_000's seperator. |
|
|
|
zSIstr(size,
B=' B ' ,
K=1024)
Convert a size to string with SI-units suffix. |
|
|
|
zfstr(flt,
prec=3)
Format a float and strip trailing zero decimals. |
|
|
|
pycocoa_abspath = ' ..../PyC ...
|
|
version = ' 25.4.8 '
|
|
AlertStyle = AlertStyle.Critical...
|
|
AutoResize = AutoResize.HeightSizable=16 or 1<...
|
|
BezelStyle = BezelStyle.Circular...
|
|
Border = Border.Bezel...
|
|
CGImageEncoding = ' {CGImage=} '
|
|
CGPointEncoding = ' {CGPoint=dd} '
|
|
CGRectEncoding = ' {CGRect={CGPoint=dd}{CGSize=dd}} '
|
|
CGSizeEncoding = ' {CGSize=dd} '
|
|
CMYColors = CMYColors.Cyan=CMYColor(_NSTaggedPointerColor, nam...
|
|
Colors = Colors.CMY=CMYColo...
|
|
FontDesign = FontDesign.Default...
|
|
FontTextStyle = FontTextStyle.Body=...
|
|
FontTrait = FontTrait.Bold...
|
|
FontWeight = FontWeight.Black=12 or 3<...
|
|
Fonts = Fonts.App=Font.Helvetica(family=Helvetica, size=12, we...
|
|
GrayScaleColors = GrayScaleColors.Black=GrayScaleColor(_NSTagg...
|
|
HSBColors = HSBColors.NoneYet=None
|
|
Keys = Keys.ACK=0...
|
|
Libs = {'CoreFoundation': <CDLL 'CoreFoundation.framework/Core...
|
|
NO = False
|
|
NSAcknowledgeCharacter = 6
|
|
NSAlert = ObjCClass('NSAlert')
|
|
NSAlertDelegate = <pycocoa.basics.Proxy1ce object at 0x7feac05...
|
|
NSAlphaShiftKeyMask = 65536
|
|
NSAlternateKeyMask = 524288
|
|
NSAnyEventMask = 4294967295
|
|
NSApplication = ObjCClass('NSApplication')
|
|
NSApplicationActivationPolicyAccessory = 1
|
|
NSApplicationActivationPolicyProhibited = 2
|
|
NSApplicationActivationPolicyRegular = 0
|
|
NSApplicationDefined = 15
|
|
NSApplicationDelegate = <pycocoa.basics.Proxy1ce object at 0x7...
|
|
NSApplicationDidHideNotification = c_void_p(140704496894720)
|
|
NSApplicationDidUnhideNotification = c_void_p(140704496894816)
|
|
NSApplicationPresentationDefault = 0
|
|
NSApplicationPresentationDisableHideApplication = 256
|
|
NSApplicationPresentationDisableProcessSwitching = 32
|
|
NSApplicationPresentationHideDock = 2
|
|
NSApplicationPresentationHideMenuBar = 8
|
|
NSArray = ObjCClass('NSArray')
|
|
NSAttributedString = ObjCClass('NSAttributedString')
|
|
NSAutoreleasePool = ObjCClass('NSAutoreleasePool')
|
|
NSBackSpaceCharacter = 8
|
|
NSBackTabCharacter = 25
|
|
NSBackingStoreBuffered = 2
|
|
NSBackingStoreNonretained = 1
|
|
NSBackingStoreRetained = 0
|
|
NSBellCharacter = 7
|
|
NSBezierPath = ObjCClass('NSBezierPath')
|
|
NSBoolean = NSNumber.numberWithBool_
|
|
NSBundle = ObjCClass('NSBundle')
|
|
NSCancelButton = 0
|
|
NSCancelCharacter = 24
|
|
NSCarriageReturnCharacter = 13
|
|
NSCenterTextAlignment = 2
|
|
NSClearLineFunctionKey = 63289
|
|
NSColor = ObjCClass('NSColor')
|
|
NSCommandKeyMask = 1048576
|
|
NSConcreteNotification = ObjCClass('NSConcreteNotification')
|
|
NSConcreteValue = ObjCClass('NSConcreteValue')
|
|
NSConstantString = ObjCClass('NSConstantString')
|
|
NSControlKeyMask = 262144
|
|
NSData = ObjCClass('NSData')
|
|
NSDataLineEscapeCharacter = 16
|
|
NSDate = ObjCClass('NSDate')
|
|
NSDecimalNumber = ObjCClass('NSDecimalNumber')
|
|
NSDefaultRunLoopMode = _dllattr(_libAppKit, NSDefaultRunLoopMo...
|
|
NSDeleteCharacter = 127
|
|
NSDeleteFunctionKey = 63272
|
|
NSDeviceControl1Character = 17
|
|
NSDeviceControl2Character = 18
|
|
NSDeviceControl3Character = 19
|
|
NSDeviceControl4Character = 20
|
|
NSDictionary = ObjCClass('NSDictionary')
|
|
NSDockTile = ObjCClass('NSDockTile')
|
|
NSDouble = NSNumber.numberWithDouble_
|
|
NSDownArrowFunctionKey = 63233
|
|
NSEndFunctionKey = 63275
|
|
NSEndOfMediumCharacter = 25
|
|
NSEndOfTextCharacter = 3
|
|
NSEndOfTransmitBlockCharacter = 23
|
|
NSEndOfTransmitCharacter = 4
|
|
NSEnquiryCharacter = 5
|
|
NSEnterCharacter = 3
|
|
NSEnumerator = ObjCClass('NSEnumerator')
|
|
NSError = ObjCClass('NSError')
|
|
NSEscapeCharacter = 27
|
|
NSEventTrackingRunLoopMode = _dllattr(_libAppKit, NSEventTrack...
|
|
NSException = ObjCClass('NSException')
|
|
NSF19FunctionKey = 63254
|
|
NSF1FunctionKey = 63236
|
|
NSFileHandlingPanelCancelButton = 0
|
|
NSFileHandlingPanelOKButton = 1
|
|
NSFileSeparatorCharacter = 28
|
|
NSFlagsChanged = 12
|
|
NSFloat = NSNumber.numberWithDouble_
|
|
NSFloatEncoding = ' f '
|
|
NSFont = ObjCClass('NSFont')
|
|
NSFontBoldMask = 2
|
|
NSFontClarendonSerifsClass = 1073741824
|
|
NSFontClassMask = 4026531840
|
|
NSFontColorGlyphsMask = 8192
|
|
NSFontCompositeMask = 16384
|
|
NSFontCompressedMask = 512
|
|
NSFontCondensedMask = 64
|
|
NSFontDescriptor = ObjCClass('NSFontDescriptor')
|
|
NSFontExpandedMask = 32
|
|
NSFontFreeformSerifsClass = 1879048192
|
|
NSFontItalicMask = 1
|
|
NSFontManager = ObjCClass('NSFontManager')
|
|
NSFontModernSerifsClass = 805306368
|
|
NSFontMonoSpaceMask = 1024
|
|
NSFontNarrowMask = 16
|
|
NSFontNonStandardCharacterSetMask = 8
|
|
NSFontOldStyleSerifsClass = 268435456
|
|
NSFontOrnamentalsClass = 2415919104
|
|
NSFontPanel = ObjCClass('NSFontPanel')
|
|
NSFontPosterMask = 256
|
|
NSFontSansSerifClass = 2147483648
|
|
NSFontScriptsClass = 2684354560
|
|
NSFontSlabSerifsClass = 1342177280
|
|
NSFontSmallCapsMask = 128
|
|
NSFontSymbolicClass = 3221225472
|
|
NSFontTransitionalSerifsClass = 536870912
|
|
NSFontUIOptimizedMask = 4096
|
|
NSFontUnboldMask = 4
|
|
NSFontUnitalicMask = 16777216
|
|
NSFontUnknownClass = 0
|
|
NSFontVerticalMask = 2048
|
|
NSFormFeedCharacter = 12
|
|
NSFunctionKeyMask = 8388608
|
|
NSGroupSeparatorCharacter = 29
|
|
NSHelpFunctionKey = 63302
|
|
NSHelpKeyMask = 4194304
|
|
NSHomeFunctionKey = 63273
|
|
NSHorizontalTabCharacter = 9
|
|
NSImage = ObjCClass('NSImage')
|
|
NSImageView = ObjCClass('NSImageView')
|
|
NSInt = NSNumber.numberWithInt_
|
|
NSIntegerEncoding = ' l '
|
|
NSIntegerMax = 9223372036854775807
|
|
NSJustifiedTextAlignment = 3
|
|
NSKeyDown = 10
|
|
NSKeyUp = 11
|
|
NSLayoutManager = ObjCClass('NSLayoutManager')
|
|
NSLeftArrowFunctionKey = 63234
|
|
NSLeftTextAlignment = 0
|
|
NSLineFeedCharacter = 10
|
|
NSLineSeparatorCharacter = 8232
|
|
NSLong = NSNumber.numberWithLong_
|
|
NSLongLong = NSNumber.numberWithLongLong_
|
|
NSMain = NSMain.Application=NSApplication(<Id_t at 0x7feab0586...
|
|
NSMenu = ObjCClass('NSMenu')
|
|
NSMenuItem = ObjCClass('NSMenuItem')
|
|
NSMutableArray = ObjCClass('NSMutableArray')
|
|
NSMutableData = ObjCClass('NSMutableData')
|
|
NSMutableDictionary = ObjCClass('NSMutableDictionary')
|
|
NSMutableSet = ObjCClass('NSMutableSet')
|
|
NSMutableString = ObjCClass('NSMutableString')
|
|
NSNaturalTextAlignment = 4
|
|
NSNegativeAcknowledgeCharacter = 21
|
|
NSNewLineCharacter = 10
|
|
NSNotFound = 9223372036854775807
|
|
NSNotification = ObjCClass('NSNotification')
|
|
NSNotificationCenter = ObjCClass('NSNotificationCenter')
|
|
NSNull = ObjCClass('NSNull')
|
|
NSNullCharacter = 0
|
|
NSNumber = ObjCClass('NSNumber')
|
|
NSNumericPadKeyMask = 2097152
|
|
NSOKButton = 1
|
|
NSObject = ObjCClass(_NSObject_)
|
|
NSOpenPanel = ObjCClass('NSOpenPanel')
|
|
NSPageDownFunctionKey = 63277
|
|
NSPageLayout = ObjCClass('NSPageLayout')
|
|
NSPageUpFunctionKey = 63276
|
|
NSParagraphSeparatorCharacter = 8233
|
|
NSPointEncoding = ' {CGPoint=dd} '
|
|
NSPointZero = NSPoint_t(0, 0)
|
|
NSPrintInfo = ObjCClass('NSPrintInfo')
|
|
NSPrintOperation = ObjCClass('NSPrintOperation')
|
|
NSPrintPanel = ObjCClass('NSPrintPanel')
|
|
NSPrinter = ObjCClass('NSPrinter')
|
|
NSRangeEncoding = ' {_NSRange=QQ} '
|
|
NSRecordSeparatorCharacter = 30
|
|
NSRectEncoding = ' {CGRect={CGPoint=dd}{CGSize=dd}} '
|
|
NSRightArrowFunctionKey = 63235
|
|
NSRightTextAlignment = 1
|
|
NSSavePanel = ObjCClass('NSSavePanel')
|
|
NSScreen = ObjCClass('NSScreen')
|
|
NSScrollView = ObjCClass('NSScrollView')
|
|
NSSet = ObjCClass('NSSet')
|
|
NSShiftInCharacter = 15
|
|
NSShiftKeyMask = 131072
|
|
NSShiftOutCharacter = 14
|
|
NSSizeEncoding = ' {CGSize=dd} '
|
|
NSSpaceCharacter = 32
|
|
NSSquareStatusItemLength = -2
|
|
NSStartOfHeadingCharacter = 1
|
|
NSStartOfTextCharacter = 2
|
|
NSStatusBar = ObjCClass('NSStatusBar')
|
|
NSString = ObjCClass('NSString')
|
|
NSSubstituteCharacter = 26
|
|
NSSynchronousIdleCharacter = 22
|
|
NSTabCharacter = 9
|
|
NSTableColumn = ObjCClass('NSTableColumn')
|
|
NSTableView = ObjCClass('NSTableView')
|
|
NSTableViewDashedHorizontalGridLineMask = 8
|
|
NSTableViewDelegate = <pycocoa.basics.Proxy1ce object at 0x7fe...
|
|
NSTableViewGridNone = 0
|
|
NSTableViewSolidHorizontalGridLineMask = 2
|
|
NSTableViewSolidVerticalGridLineMask = 1
|
|
NSTextAlignmentCenter = 2
|
|
NSTextAlignmentJustified = 3
|
|
NSTextAlignmentLeft = 0
|
|
NSTextAlignmentNatural = 4
|
|
NSTextAlignmentRight = 1
|
|
NSTextField = ObjCClass('NSTextField')
|
|
NSTextView = ObjCClass('NSTextView')
|
|
NSTextWritingDirectionEmbedding = 0
|
|
NSTextWritingDirectionOverride = 2
|
|
NSThread = ObjCClass('NSThread')
|
|
NSTrackingActiveInActiveApp = 64
|
|
NSTrackingCursorUpdate = 4
|
|
NSTrackingMouseEnteredAndExited = 1
|
|
NSTrackingMouseMoved = 2
|
|
NSUIntegerEncoding = ' L '
|
|
NSURL = ObjCClass('NSURL')
|
|
NSUnitSeparatorCharacter = 31
|
|
NSUpArrowFunctionKey = 63232
|
|
NSValue = ObjCClass('NSValue')
|
|
NSVariableStatusItemLength = -1
|
|
NSVerticalTabCharacter = 11
|
|
NSView = ObjCClass('NSView')
|
|
NSWindow = ObjCClass('NSWindow')
|
|
NSWindowCloseButton = 0
|
|
NSWindowDelegate = <pycocoa.basics.Proxy1ce object at 0x7feac0...
|
|
NSWindowDocumentIconButton = 4
|
|
NSWindowMiniaturizeButton = 1
|
|
NSWindowStyleMaskClosable = 2
|
|
NSWindowStyleMaskMiniaturizable = 4
|
|
NSWindowStyleMaskResizable = 8
|
|
NSWindowStyleMaskTitled = 1
|
|
NSWindowStyleMaskUsual = 15
|
|
NSWindowStyleMaskUtilityWindow = 16
|
|
NSWindowToolbarButton = 3
|
|
NSWindowZoomButton = 2
|
|
NSZoneEncoding = ' {_NSZone=} '
|
|
OBJC_ASSOCIATION = OBJC_ASSOCIATION.ASSIGN...
|
|
OBJC_ASSOCIATION_ASSIGN = 0
|
|
OBJC_ASSOCIATION_COPY = 771
|
|
OBJC_ASSOCIATION_COPY_NONATOMIC = 3
|
|
OBJC_ASSOCIATION_RETAIN = 769
|
|
OBJC_ASSOCIATION_RETAIN_NONATOMIC = 1
|
|
PanelButton = PanelButton.Cancel...
|
|
PyObjectEncoding = ' {PyObject=@} '
|
|
RGBColors = RGBColors.Blue=RGBColor(_NSTaggedPointerColor, nam...
|
|
Screens = (Screen(NSScreen, name='BuiltIn'), Screen(NSScreen, ...
|
|
TintColors = TintColors.Blue=TintColor(NSDynamicSystemColor, n...
|
|
UIColors = UIColors.Control=UIColor(NSDynamicSystemColor, name...
|
|
WindowStyle = WindowStyle.Closable...
|
|
YES = True
|
|
bases = <pycocoa.basics.Proxy1ce object at 0x7feac05c3390>
|
|
c_void = None
hash(x)
|
|
isLazy = None
hash(x)
|
|
libAppKit = <_DeprecatedCDLL 'AppKit.framework/AppKit', handle...
|
|
libCF = <_DeprecatedCDLL 'CoreFoundation.framework/CoreFoundat...
|
|
libCG = <_DeprecatedCDLL 'CoreGraphics.framework/CoreGraphics'...
|
|
libCT = <_DeprecatedCDLL 'CoreText.framework/CoreText', handle...
|
|
libFoundation = <_DeprecatedCDLL 'Foundation.framework/Foundat...
|
|
libPC = <_DeprecatedCDLL '/System/Library/Frameworks/Applicati...
|
|
libobjc = <_DeprecatedCDLL 'libobjc.dylib', handle 7fff98d9ce2...
|
|
missing = missing
|