fontlab_glyport.ui.nib_loader
nib_loader
Instantiate a NIB/XIB UIGraph as Qt-backed Cocoa views (R031).
instantiate(graph, owner, appkit) substitutes owner for File's Owner,
builds every view with its frame and control properties, nests subviews
(a window's content view becomes its contentView, a scroll view's
document its documentView; windows stay hidden),
sets outlets on their source objects, wires target/action and binds values.
A class the graph names but neither classes (the plugin's own Python
classes) nor appkit provides is a blocked case: UnsupportedCapability
naming the class and its source id, never an inert placeholder widget.
Connections that cannot be honoured (an action sent to First Responder, an
outlet on a view such as nextKeyView) are listed in diagnostics.
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 |
|---|---|---|---|
find_nib |
function | (name: str, resources: str | Path) -> Path | None |
<code>name.nib</code><code> (deployed, preferred) or </code><code>name.xib</code><code> under </code><code>resources</code>. |
instantiate |
function | (graph: UIGraph, owner: Any, appkit: Mapping[str, Any], *, classes: Mapping[str, type] | None=None, resources… |
Build <code>graph</code><code>'s objects with </code><code>owner</code><code> as File's Owner; named images are looked up in the </code><code>resources</code> folders (the plugin bundle's). |
load_graph |
function | (path: str | Path) -> UIGraph |
A <code>.nib</code><code> (file or bundle) or </code><code>.xib</code><code> path as a </code><code>UIGraph</code>. |