gnustep-dev
[Top][All Lists]
Advanced

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

Re: NSMenuItem and NSValidatedUserInterfaceItem


From: Fred Kiefer
Subject: Re: NSMenuItem and NSValidatedUserInterfaceItem
Date: Tue, 06 Jan 2009 12:06:16 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081112)

Quentin Mathé wrote:
> Le 6 janv. 09 à 06:12, Richard Frith-Macdonald a écrit :
> 
>> On 5 Jan 2009, at 21:15, Fred Kiefer wrote:
>>
>>> This seems to be one of the possible solutions, another one would be to
>>> eliminate the usage of the protocol all together and have all the
>>> methods on NSMenu deal with NSMenuItems, just as Apple did it. I am not
>>> sure which solutions I would prefer. Anybody out there with a strong
>>> opinion?
>>
>> Not a strong one, but I agree with you. The protocol was not an
>> original part of OpenStep but a later add-on which turned out to not
>> be very useful and was removed again.  I don't see a lot of point
>> trying to keep it.  However I know that Etoile has played with
>> alternative menu systems and it may be that they use it, so it would
>> be good to check that.
> 
> Yes. We don't use NSMenuItem protocol yet, but I have a use in mind for
> one of our framework class, so it could prove to be useful for us in
> future. That's why I would prefer to have NSMenuItem protocol not
> removed. If it prove to be not so useful, I'll let you know.

When will you know? I don't want to change this twice, so it would be
great to learn first, whether the protocol will turn out to be of any
use for you.
To be honest, I don't see any potential use for the protocol itself. We
need to have an abstraction for the menu representation, but this is
already there. Why would anybody use menu items that aren't of a
subclass of NSMenuItem?





reply via email to

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