• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Discovering Openstep Tutorial (missing code)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Discovering Openstep Tutorial (missing code)
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: Memory limitation of NSScrollView
  • Next by Date: Re: Discovering Openstep Tutorial (missing code)
  • Previous by thread: Re: Memory limitation of NSScrollView
  • Next by thread: Re: Discovering Openstep Tutorial (missing code)
  • Index(es):
    • Date
    • Thread