To touch up the idea.
El lun, 19-01-2009 a las 13:12 -0600, Germán Arias escribió:
> We need an flexible menu and easy change with NSNextStepInterfaceStyle,
> NSMacintoshInterfaceStyle and NSWindows95InterfaceStyle. Now I propose a
> new solution. As said Nikolaus, he proposed a [window setMenu:], then
> why not implement this method together my idea?. This solution work on
> this way:
>
> When you set NSWindow95InterfaceStyle, GNUstep check if there is a main
> window, if this exist set the menu in that window (with [window
> setMenu:]). Call the method setMinSize, with a value that prevent hidden
> options (the programmer need careful in this), and perform a connection
> to window with (for example) AppController, with sometime like this
>
> - (void) windowWillClose: (NSNotification *)aNotification;
> {
> if( (style == NSWindows95InterfaceStyle]) && (thereIsMainWindow) )
> {
> [NSApp terminate: self] ;
> }
> }
>
>
Well, we don't need check this, if NSWindow95InterfaceStyle isn't set
and there isn't a main window, this connection isn't made.
> If there isn't a main window then, GNUstep make a new window as I said
> before.
>
> And I don't see problem if the user want set his own menus in other
> windows (of course not the main window).
>
> What do you think about this new idea?
Now I see the problem, maybe we need a new class inherits from NSMenu,
focused to make horizontal menus (but not main menus).
_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep