• 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
Re: How to stop initial window ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stop initial window ?


  • Subject: Re: How to stop initial window ?
  • From: email@hidden
  • Date: Mon, 9 Jul 2001 21:44:51 +0200

Le lundi 9 juillet 2001, ` 08:32, Curtis Laser a icrit :

This is the simplest way I have found:

Create a subclass of NSObject that will become the delegate of the
application. This subclass should be instantiated in MainMenu.nib. The
subclass has two methods. The first installs the object as the delegate when
it is pulled from the nib file:

- (void)awakeFromNib
{
[[NSApplication sharedApplication] setDelegate: self];
}


You don't even have to write this code. Just connect the object in the nib file (in Interface Builder) to the "delegate" outlet of the file's owner, which is really the application.


Thomas Lachand-Robert
********************** email@hidden
The Commandant Project: http://lachand.free.fr/
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.


  • Prev by Date: Re: objc_getClassList, pointers, and NSArray
  • Next by Date: sstream & screen color query
  • Previous by thread: Re: How to stop initial window ?
  • Next by thread: Draw firstResponder status
  • Index(es):
    • Date
    • Thread