=================== BUG #4815: LATEST MODIFICATIONS ================== http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4815&group_id=99
Changes by: Rob Burns <[EMAIL PROTECTED]> 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 instantiated... 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) _______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
