home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!psinews!usenet
- From: ph@theora (Patrick Hester)
- Subject: need nib file help
- Message-ID: <1992Sep11.204747.27888@psisa.psi>
- Sender: usenet@psisa.psi (News system)
- Reply-To: ph@pencom.com
- Organization: Pencom Systems Incorporated
- Date: Fri, 11 Sep 1992 20:47:47 GMT
- Lines: 25
-
- Can anyone shed some light on this...
-
- We've got an application which will be made up of several nib files.
- Each nib file will have it's own controller object (subclass of object)
- and one or more windows.
- The main nib file has a menu and target/action methods to load
- each of the other nibs.
- When a nib file is loaded, only one window should be visible.
- This we handled in an awakeFromNib method.
- But say the user closes the main window.
- Next time they click the menu for that nib we want to redisplay
- that one window without unpacking the nib again.
- So how do we tell the id of that window?
- At first it seemed that loadNibFile was returning the id.
- But the doc says it's only an indication of whether the load
- worked or no.
- And what about file owners?
- Should the loaded nib files have their controller object as the owner
- or the main app object?
- Come to think of it, can anyone help me with the concept of
- "file owner"?
-
- please reply by email to ph@pencom.com
-
- thanks in advance for any help
-