discuss-gnustep
[Top][All Lists]
Advanced

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

Re: My GWorkspace feature request


From: Philippe C . D . Robert
Subject: Re: My GWorkspace feature request
Date: Sun, 22 Jun 2003 18:00:36 +0200

On Sunday, June 22, 2003, at 03:23 PM, Enrico Sersale wrote:
Totally annoyed by this discussion I've removed the menues. It's on cvs.
Hi Enrico,
it is your app - a great app by the way - so you can do what you like most. But I believe that here you are going in the wrong direction. Can you give good reasons why you did so apart from being annoyed by a discussion which was not able to give a final answer on the >> subject?

Well, I'm still evaluating what to do; it seems that there are many persons that like this feature. Moreover, the contestual menues came from a contribution of a user; some time ago Matt Rice sent me a > patch. The real problem now is that, during this discussion, Adam Fedor has written that -menuForEvent: is "discouraged". And I don't know if GWorkspace should use a "discouraged" method...

Why is this method supposed to be discouraged? I must have missed this one, it seems... Besides, Apple's documentation says the following about contextual menus:

"You can attach a contextual menu to any NSView object. When the user Control-clicks on that view, the menu appears. To assign a menu to a view, use setMenu:, which NSView inherits from NSResponder. Your subclass can define a menu that’s used for all instances by implementing the defaultMenu class method. To change the menu displayed based on the mouse event, override the menuForEvent: instance method. This allows the view clicked to display different menus based on the location of the mouse and of the view’s state, or to change or enable individual menu items based on the commands available for the view or for that region of the view."

So to me this sounds not discouraging, but then I am aware that this is Cocoa and not OpenStep.

-Phil
--
Philippe C.D. Robert
http://www.nice.ch/~phip





reply via email to

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