mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
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:
parent
0c71bf0f6b
commit
8d096d1e9c
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue