Discovering Openstep Tutorial (missing code)
Discovering Openstep Tutorial (missing code)
- Subject: Discovering Openstep Tutorial (missing code)
- From: Ronaldo Nascimento <email@hidden>
- Date: Thu, 26 Jul 2001 18:22:50 -0400
I have the old OpenStep book:
Discovering OpenStep: A Developer Tutorial
The last tutorial is the To Do Tutorial. There seems to be some code
missing to complete the exercise. On page 176 (step 11 for Creating and
Managing an Inspector) it says to "implement the ToDoController's
showInspector: method to load ToDoInspector.nib and make the inspector
panel the key window." However there is no code showing how to do this.
What I have been able to gather is that it looks somehting like this:
- (void)showInspector
{
[NSApp loadNibSelection:"ToDoInspector.nib" owner:self];
/* something else goes here to make it front and modal */
}
1) How do you load another nib file from your project that has a modal
panel
2) How do you putinformation into the panel
3) How to you pass control to it so it handles all events until it is
closed
4) How do you get the information from the panel
Or is there better examples of "Preferences" dialogs that run from a
separate NIB file.
Thanks