discuss-gnustep
[Top][All Lists]
Advanced

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

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


From: Stefan Urbanek
Subject: Re: NSMenu:s created in app...WillFinishLaunching won't reopen
Date: Sat, 23 Feb 2002 00:39:46 +0100

Hi,

Speaking about menus... with current snapshot of GS and Gorm: if I add new
submenu to an applicaiton menu and add some menu items into it, the submenu
will not open when testing interface or when runnig the application. Anyone
else experiencing this?

Standard menus dragged from palette (like Document and Edit) will open
normally.

Stefan


Alexander Malmberg wrote:
> 
> 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]