[Top][All Lists]

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

[bug #4815] [NSApp mainMenu] returns nil

From: nobody
Subject: [bug #4815] [NSApp mainMenu] returns nil
Date: Thu, 04 Sep 2003 08:35:17 -0400
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461)

=================== BUG #4815: LATEST MODIFICATIONS ==================

Changes by: Rob Burns <rburns@softhome.net>
Date: Thu 09/04/03 at 12:35 (GMT)

------------------ Additional Follow-up Comments ----------------------------
thanks, works for me.

=================== BUG #4815: FULL BUG SNAPSHOT ===================

Submitted by: None                    Project: GNUstep                      
Submitted on: Mon 08/18/03 at 04:29
Category:  Gorm                       Severity:  2                          
Bug Group:  Bug                       Resolution:  Fixed                    
Assigned to:  gcasa                   Status:  Closed                       

Summary:  [NSApp mainMenu] returns nil

Original Submission:  when using a gorm created menu, [NSApp mainMenu] will 
return nil. I've tried this with the 'menu' outlet in NSApplication connected 
and with it not, with the same results.

Follow-up Comments

Date: Thu 09/04/03 at 12:35         By: rburns
thanks, works for me.

Date: Mon 09/01/03 at 09:19         By: gcasa
Tests indicate the mainMenu is initialized before awakeFromNib is called.   
I've made the necessary change to support this.

2003-09-01 09:23:34.278 loginpanel[30566] Decoding custom class GSTextView

2003-09-01 09:23:34.336 loginpanel[30566] LoginWindow class has been 

2003-09-01 09:23:34.359 loginpanel[30566]  NSMenu: Main Menu (Normal)

It should now return the correct value.  GJC

Date: Mon 09/01/03 at 06:55         By: rburns
NSLog(@"%@", [[NSApp mainMenu] description]);

will log (nil)

Is this because I am doing it in awakeFromNib? should it not work there? In 
other gorm files, none of the connections will be functional until after [self 
window] is called. (using an NSWindowController). Is this a similar problem? In 
this case it is awakeFromNib in the application delegate, and there is now 
windows in the gorm file.

Date: Sun 08/31/03 at 14:36         By: gcasa
Program received signal SIGINT, Interrupt.

[Switching to Thread 1024 (LWP 24313)]

0x4068c5ab in poll () from /lib/i686/libc.so.6

(gdb) print [NSApp mainMenu]

$1 = 139441392

(gdb) print (char *)[[[NSApp mainMenu] description] cString]

$2 = 0x85f7390 "NSMenu: Gorm (Normal)

reply via email to

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