So this problem might be more related to my lack of experience with
Interface Builder, but I’m trying to delegate from an interface that I
designed to my Ruby class, and I can’t figure out how to do it. I’ve
managed to create a new instance of my class in Interface Builder, but
I can’t seem to delegate from my Window to this class. Can anybody give
me a clue on how to do this?
I’m looking through documentation right now, but I was hoping somebody
could help me shortcut the process.
Cheers,
bs.
Ben Schumacher ben@blahr.com writes:
So this problem might be more related to my lack of experience with
Interface Builder, but I’m trying to delegate from an interface that I
designed to my Ruby class, and I can’t figure out how to do it. I’ve
managed to create a new instance of my class in Interface Builder, but
I can’t seem to delegate from my Window to this class. Can anybody give
me a clue on how to do this?
In the window that displays instances and classes, click on the “Instances”
tab. Holding down the control key, click in the Window instance and drag to
your classes instance. The inspector window will open to “Connections”.
Click on “delegate” in the left pane of the inspector, then click the
“Connect” button at the bottom. (Alternately, you can double-click on
“delegate”.)
Jim
···
–
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
“Unix is extremely user-friendly. It also happens to be extremely
selective when picking its friends.” – Daniel E. Macks