Article View: comp.sys.next.programmer
Article #508Re: Using nibs
From: Andrew Loewenstern
Date: Sat, 08 Aug 1992 06:13
Date: Sat, 08 Aug 1992 06:13
27 lines
1611 bytes
1611 bytes
In article <1992Aug6.000907.1895@dvorak.amd.com> rpomeroy@aunext3.cam.amd.com writes:
>Now when I hit the Info button in the menu (in the compiled app),
>displayInfoPanel:sender is sent and the nib is unarchived again and again.
>
>My question is - do all of the instances have the same id (i.e. "infoPanel) ?
>
>What I would like to be able to do is compose an object in interface builder,
>save it as a nib, dynamically (programatically) create copies of that nib, but
>each with a unique id. Kinda' like using a nib for a class definition. Is
>this possible?
all ID's are unique. It's not possible to have two separate objects
in the same application that have the same ID. When you repeatedly
load a nib, you are creating the same objects, but they are all
separate and distinct.
For instance, if you had a nib that was a document window, you would
sinmply load the nib each time you needed a new doc window.
so yes.
andrew
--
andrew@cubetech.com | "We shall not cease from exploration
Andrew Loewenstern | And the end of our exploring
Cube Technologies, Inc. | Will be to arrive where we started
| And know the place for the first time." -T.S. Eliot
Technical Details
Message-ID:
<1992Aug8.061315.1446@cubetech.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!psinntp!cubetech.com!imladris!andrewReferences:
<1992Aug6.000907.1895@dvorak.amd.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!cubetech.com!imladris!andrew From: andrew@cubetech.com (Andrew Loewenstern) Subject: Re: Using nibs Message-ID: <1992Aug8.061315.1446@cubetech.com> Organization: Cube Technologies, Inc. References: <1992Aug6.000907.1895@dvorak.amd.com> Distribution: usa Date: Sat, 8 Aug 1992 06:13:15 GMT Lines: 27