Skip to content

fontlab_glyport.ui.cocoa · declarations 001

Back to fontlab_glyport.ui.cocoa

NSKeyValueChangeKindKey module-attribute

NSKeyValueChangeKindKey

NSKeyValueChangeNewKey module-attribute

NSKeyValueChangeNewKey

NSKeyValueChangeOldKey module-attribute

NSKeyValueChangeOldKey

NSKeyValueChangeSetting module-attribute

NSKeyValueChangeSetting

NSKeyValueObservingOptionNew module-attribute

NSKeyValueObservingOptionNew

NSKeyValueObservingOptionOld module-attribute

NSKeyValueObservingOptionOld

NSMakePoint

NSMakePoint(x, y) -> NSPoint

NSMakeRect

NSMakeRect(x, y, w, h) -> NSRect

NSMakeSize

NSMakeSize(w, h) -> NSSize

NSZeroPoint module-attribute

NSZeroPoint

NSZeroRect module-attribute

NSZeroRect

NSZeroSize module-attribute

NSZeroSize

as_rect

as_rect(value: Any) -> NSRect

Accept an NSRect or the PyObjC tuple forms ((x, y), (w, h))/(x, y, w, h).

perform

perform(target: Any, selector: str, *args: Any) -> Any

Call target's method for selector with exactly its colon arity.

python_name

python_name(selector: str) -> str

"setValue:forKey:" -> "setValue_forKey_" (PyObjC's mapping).

selector_of

selector_of(action: Any) -> str

Normalise a setAction_ argument to an Objective-C selector string.

Accepts a selector string ("go:"), bytes, an objc.selector object or a Python method/function (its __name__ mapped by PyObjC's rule).

unsupported

unsupported(capability: str) -> UnsupportedCapability

An UnsupportedCapability located at the calling script line.