Re: How to stop initial window ?
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.