fontlab_glyport.ui.cocoa
cocoa
PyObjC-shaped Foundation basics for Qt-backed Cocoa UI (R030).
NSObject is a plain Python class with PyObjC's construction protocol
(alloc().init(), new()), key-value coding and key-value observing.
Selectors are strings in Objective-C form ("setValue:forKey:"); a Python
method name maps to one by replacing _ with : (PyObjC's rule), and the
colon count is the argument count. Geometry values are tuples with Cocoa field
names (NSMakeRect(x, y, w, h).size.width) in Cocoa's bottom-left origin.
Classes
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
NSKeyValueChangeKindKey |
attribute | ||
NSKeyValueChangeNewKey |
attribute | ||
NSKeyValueChangeOldKey |
attribute | ||
NSKeyValueChangeSetting |
attribute | ||
NSKeyValueObservingOptionNew |
attribute | ||
NSKeyValueObservingOptionOld |
attribute | ||
NSMakePoint |
function | (x, y) -> NSPoint |
|
NSMakeRect |
function | (x, y, w, h) -> NSRect |
|
NSMakeSize |
function | (w, h) -> NSSize |
|
NSZeroPoint |
attribute | ||
NSZeroRect |
attribute | ||
NSZeroSize |
attribute | ||
as_rect |
function | (value: Any) -> NSRect |
Accept an NSRect or the PyObjC tuple forms <code>((x, y), (w, h))</code><code>/</code><code>(x, y, w, h)</code>. |
perform |
function | (target: Any, selector: str, *args: Any) -> Any |
Call <code>target</code><code>'s method for </code><code>selector</code> with exactly its colon arity. |
python_name |
function | (selector: str) -> str |
<code>"setValue:forKey:"</code><code> -> </code><code>"setValue_forKey_"</code> (PyObjC's mapping). |
selector_of |
function | (action: Any) -> str |
Normalise a <code>setAction_</code> argument to an Objective-C selector string. |
unsupported |
function | (capability: str) -> UnsupportedCapability |
An UnsupportedCapability located at the calling script line. |