gnustep-dev
[Top][All Lists]
Advanced

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

NSMenuItem and NSValidatedUserInterfaceItem


From: Quentin Mathé
Subject: NSMenuItem and NSValidatedUserInterfaceItem
Date: Mon, 5 Jan 2009 00:27:25 +0100

Hi,

With r27415, NSMenuItem class was made conform to NSValidatedUserInterfaceItem. This causes a compilation warning when an object of the type id <NSMenuItem> is assigned to a variable of the type NSMenuItem *. For example, the following line currently causes a warning with GNUstep trunk:
NSMenuItem *menuItem = [menu itemWithTag: aTag];
To eliminate the warning and maintain Cocoa compatibility (where NSMenuItem protocol is deprecated), I suggest to make NSMenuItem protocol conform to NSValidatedUserInterfaceItem protocol. By doing so, NSMenuItem class doesn't have to conform to NSValidateduserInterfaceItem protocol anymore and everything compiles without warning.
A more detailed presentation of the issue is available here: 
http://review.etoileos.com/r/68/
Cheers,
Quentin.




reply via email to

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