Multiple nibs (used to be "tricks of the trade")
Multiple nibs (used to be "tricks of the trade")
- Subject: Multiple nibs (used to be "tricks of the trade")
- From: Enrique Zamudio <email@hidden>
- Date: Mon, 11 Jun 2001 14:50:51 -0500
you can have a single object as the owner of several nibs and load
those nibs as needed.
Also, you can have an instance of an object living in one nib, and
it can also be the owner of a different nib.
If you have classes A, B, C, you can have an instance of A (let's
call it iA) in the main nib, but it can be the owner of NibA. When it
needs to use a window or something else living in NibA, iA loads it.
Maybe NibA contains an instance of B, so now you can have
connections between iA and iB. iB can load NibB and be its owner, and
NibB can have an instance of C, and now iB and iC can have
connections between them. If you need to connect iA and iC, maybe iB
can set them up programatically or you just place iC in the main nib
with iA, instead of including it in NibB.
That might have been a little more confusing than I was hoping for
but maybe it will help.
eZL