Package pycocoa :: Module oslibs
[frames] | no frames]

Module oslibs

Various ObjC and macOS libraries, signatures, constants, etc.


Version: 18.06.10

Classes
  NSInteger_t
  NSRect_t
ObjC struct with fields origin and size (NSPoint_t, NSSize_t).
  NSExceptionHandler_t
Functions
 
get_lib(name)
Find and load a .dylib library.
 
leaked2()
Return the number of memory leaks.
Variables
  NO = False
ObjC's False (const).
  YES = True
ObjC's True (const).
  libCF = <CDLL '/System/Library/Frameworks/CoreFoundation.frame...
The macOS CoreFoundation library (ctypes.CDLL).
  libAppKit = <CDLL '/System/Library/Frameworks/AppKit.framework...
The macOS AppKit library (ctypes.CDLL).
  NSApplicationDidHideNotification = c_void_p(140735562117056)
  NSApplicationDidUnhideNotification = c_void_p(140735562117152)
  NSDefaultRunLoopMode = c_void_p(140735571296632)
  NSEventTrackingRunLoopMode = c_void_p(140735562111744)
  NSApplicationPresentationDefault = 0
  NSApplicationPresentationHideDock = 2
  NSApplicationPresentationHideMenuBar = 8
  NSApplicationPresentationDisableProcessSwitching = 32
  NSApplicationPresentationDisableHideApplication = 256
  NSApplicationActivationPolicyRegular = 0
  NSApplicationActivationPolicyAccessory = 1
  NSApplicationActivationPolicyProhibited = 2
  NSCancelButton = 0
  NSFileHandlingPanelCancelButton = 0
  NSOKButton = 1
  NSFileHandlingPanelOKButton = 1
  NSAnyEventMask = 4294967295
  NSKeyDown = 10
  NSKeyUp = 11
  NSFlagsChanged = 12
  NSApplicationDefined = 15
  NSAlphaShiftKeyMask = 65536
  NSShiftKeyMask = 131072
  NSControlKeyMask = 262144
  NSAlternateKeyMask = 524288
  NSCommandKeyMask = 1048576
  NSNumericPadKeyMask = 2097152
  NSHelpKeyMask = 4194304
  NSFunctionKeyMask = 8388608
  NSInsertFunctionKey = 63271
  NSDeleteFunctionKey = 63272
  NSHomeFunctionKey = 63273
  NSBeginFunctionKey = 63274
  NSEndFunctionKey = 63275
  NSPageUpFunctionKey = 63276
  NSPageDownFunctionKey = 63277
  NSBackingStoreRetained = 0
  NSBackingStoreNonretained = 1
  NSBackingStoreBuffered = 2
  NSTableViewGridNone = 0
  NSTableViewSolidVerticalGridLineMask = 1
  NSTableViewSolidHorizontalGridLineMask = 2
  NSTableViewDashedHorizontalGridLineMask = 8
  NSLeftTextAlignment = 0
  NSTextAlignmentLeft = 0
  NSRightTextAlignment = 1
  NSTextAlignmentRight = 1
  NSCenterTextAlignment = 2
  NSTextAlignmentCenter = 2
  NSJustifiedTextAlignment = 3
  NSTextAlignmentJustified = 3
  NSNaturalTextAlignment = 4
  NSTextAlignmentNatural = 4
  NSTextWritingDirectionEmbedding = 0
  NSTextWritingDirectionOverride = 2
  NSTrackingMouseEnteredAndExited = 1
  NSTrackingMouseMoved = 2
  NSTrackingCursorUpdate = 4
  NSTrackingActiveInActiveApp = 64
  NSSquareStatusItemLength = -2
  NSVariableStatusItemLength = -1
  NSWindowStyleMaskTitled = 1
  NSWindowStyleMaskClosable = 2
  NSWindowStyleMaskMiniaturizable = 4
  NSWindowStyleMaskResizable = 8
  NSWindowStyleMaskUtilityWindow = 16
  NSWindowStyleMaskUsual = 15
  NSWindowCloseButton = 0
  NSWindowMiniaturizeButton = 1
  NSWindowZoomButton = 2
  NSWindowToolbarButton = 3
  NSWindowDocumentIconButton = 4
  libquartz = <CDLL '/System/Library/Frameworks/quartz.framework...
The macOS quartz library (ctypes.CDLL).
  libCT = <CDLL '/System/Library/Frameworks/CoreText.framework/C...
The macOS CoreText library (ctypes.CDLL).
  NSFontItalicMask = 1
  NSFontBoldMask = 2
  NSFontUnboldMask = 4
  NSFontNonStandardCharacterSetMask = 8
  NSFontNarrowMask = 16
  NSFontExpandedMask = 32
  NSFontCondensedMask = 64
  NSFontSmallCapsMask = 128
  NSFontPosterMask = 256
  NSFontCompressedMask = 512
  NSFontMonoSpaceMask = 1024
  NSFontVerticalMask = 2048
  NSFontUIOptimizedMask = 4096
  NSFontColorGlyphsMask = 8192
  NSFontCompositeMask = 16384
  NSFontUnitalicMask = 16777216
  NSFontUnknownClass = 0
  NSFontOldStyleSerifsClass = 268435456
  NSFontTransitionalSerifsClass = 536870912
  NSFontModernSerifsClass = 805306368
  NSFontClarendonSerifsClass = 1073741824
  NSFontSlabSerifsClass = 1342177280
  NSFontFreeformSerifsClass = 1879048192
  NSFontSansSerifClass = 2147483648
  NSFontOrnamentalsClass = 2415919104
  NSFontScriptsClass = 2684354560
  NSFontSymbolicClass = 3221225472
  NSFontClassMask = 4026531840
  libFoundation = <CDLL '/System/Library/Frameworks/Foundation.f...
The macOS Foundation library (ctypes.CDLL).
  libobjc = <CDLL '/usr/lib/libobjc.dylib', handle 1001e3680 at ...
The macOS objc library (ctypes.CDLL).
Function Details

get_lib(name)

 

Find and load a .dylib library.

Parameters:
  • name - The library base name (str).
Returns:
The library (ctypes.CDLL).

Note: Private attribute ._name shows the library file name.

leaked2()

 

Return the number of memory leaks.

Returns:
2-Tuple (number, size) with the number of memory leaks and total size leaked, in bytes.

Variables Details

libCF

The macOS CoreFoundation library (ctypes.CDLL).
Value:
<CDLL '/System/Library/Frameworks/CoreFoundation.framework/CoreFoundat\
ion', handle 1001e1800 at 1026aa8d0>

libAppKit

The macOS AppKit library (ctypes.CDLL).
Value:
<CDLL '/System/Library/Frameworks/AppKit.framework/AppKit', handle 102\
091940 at 1030d3450>

libquartz

The macOS quartz library (ctypes.CDLL).
Value:
<CDLL '/System/Library/Frameworks/quartz.framework/quartz', handle 102\
069590 at 1030d3690>

libCT

The macOS CoreText library (ctypes.CDLL).
Value:
<CDLL '/System/Library/Frameworks/CoreText.framework/CoreText', handle\
 1020606f0 at 1030e05d0>

libFoundation

The macOS Foundation library (ctypes.CDLL).
Value:
<CDLL '/System/Library/Frameworks/Foundation.framework/Foundation', ha\
ndle 10053d590 at 1030e0c10>

libobjc

The macOS objc library (ctypes.CDLL).
Value:
<CDLL '/usr/lib/libobjc.dylib', handle 1001e3680 at 1030e0a50>