discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMenu:s created in app...WillFinishLaunching won't reopen


From: Alexander Malmberg
Subject: NSMenu:s created in app...WillFinishLaunching won't reopen
Date: Fri, 22 Feb 2002 17:39:43 +0100

Hi,

When NSMenu:s are created they add themselves as observers of the
ApplicationWillFinishLaunching notification, and when it arrives they
check their defaults key and (maybe) open again (if they were open when
the program was last used).

However, if the menus are created in the application delegate's
applicationWillFinishLaunching they won't receive the notification and
they won't open. I've attached a patch that makes the menus observe the
...DidFinish... notification instead. Is this the right thing, or am I
creating my menus in the wrong place? (If so, where should I create
them?)

- Alexander Malmberg
Index: NSMenu.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSMenu.m,v
retrieving revision 1.92
diff -r1.92 NSMenu.m
219c219
<       name: NSApplicationWillFinishLaunchingNotification 
---
>       name: NSApplicationDidFinishLaunchingNotification 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]