discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Impelmenting NSWindows95InterfaceStyle


From: Gregory John Casamento
Subject: Re: Impelmenting NSWindows95InterfaceStyle
Date: Mon, 19 Jan 2009 12:27:38 -0800 (PST)

Niklaus,

Is the plan to use the standard NSMenu/NSMenuItem objects to render the menus?   This means that the menu would be editable in Gorm since it would edit it as a NeXT-style menu.  

Gorm would need an extension only if we wanted to display the menus in horizontal style.   It works the same way currently for menus at the top of the screen.

Thanks, GC
Gregory Casamento -- Principal Consultant - OLC, Inc
# GNUstep Chief Maintainer



From: "hns@computer.org" <hns@computer.org>
To: discuss-gnustep@gnu.org
Sent: Monday, January 19, 2009 1:54:51 AM
Subject: Re: Impelmenting NSWindows95InterfaceStyle

On 19 Jan., 04:57, Germán Arias <ger...@xelalug.org> wrote:
> Hi, after inspect the source of NSMenu.m and others files. I think that
> I can try to implement the option NSWindows95InterfaceStyle. I have one
> idea to do that, and I want know what do you think about this.
>
> Well, I think that the most easy and elegant way to implement this is
> make a new window with the horizontal menu and with a standard toolbar.
> In others words, don't put the menu in an app's window. Instead this,
> make a new window (main window) to set the horizontal menu. For example,
> if an app is like this
>
>  _____
> |Menu |
> |     |
> |     |       ____________________________________
> |     |       |___________________________________|
> |_____|       |                                   |
>               |                                   |
>               |                                   |
>               |                                   |
>               |         App's window              |
>               |                                   |
>               |                                   |
>               |                                   |
>               |                                   |
>               |___________________________________|
>
> After set NSWindows95InterfaceStyle, the app's look will by like this
>
> __________________________
> |_Main window_____________|
> |      <-- Menu -- >      |
> |_________________________|
> |   <- a standard         |
> |           toolbar -->   |
> |_________________________|
>
>           ________________________________________
>          |________________________________________|
>          |                                        |
>          |                                        |
>          |                                        |
>          |                                        |
>          |         App's window                   |
>          |                                        |
>          |                                        |
>          |                                        |
>          |                                        |
>          |________________________________________|
>
> To my this is an elegant solution, because make an horizontal menu and,
> at the same time, conserve a distinctive look. In other hand, there are
> many apps that implements that look, familiar to many people. Of course,
> the programmer will by able to set his own toolbar in the main menu.
>
> What do you think about this idea?

I had suggested before (maybe my mail got lost) to implement -
[NSWindow setMenu:] so that it simply adds a horizontal menu between
the menu title and the window's toolbar.
This would allow to add window menus to any application and interface
style. And to have different menus for each window

The only critical aspects I see are
* you can't define the menu in Interface Builder
* GORM may need an extension
* or the application must set up the menu programmatically
* the standard Application Menu still appears

-- hns
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep


reply via email to

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