On startup, display torn off menus when the app did launch, not before, so

that the programmer can set up menus before that


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12702 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-23 12:18:26 +00:00
parent 0c71bf0f6b
commit 8d096d1e9c

View file

@ -220,11 +220,16 @@ static NSNotificationCenter *nc;
[contentView addSubview: _view];
[contentView addSubview: _titleView];
// Set up the notification to start the process of redisplaying
// the menus where the user left them the last time.
/* Set up the notification to start the process of redisplaying
the menus where the user left them the last time.
Use NSApplicationDidFinishLaunching, and not
NSApplicationWillFinishLaunching, so that the programmer can set
up menus in NSApplicationWillFinishLaunching.
*/
[nc addObserver: self
selector: @selector(_showTornOffMenuIfAny:)
name: NSApplicationWillFinishLaunchingNotification
name: NSApplicationDidFinishLaunchingNotification
object: NSApp];
return self;