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.


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to