mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:50:37 +00:00
Fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4603 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b0dab35fe9
commit
cb666e0196
9 changed files with 233 additions and 359 deletions
|
@ -3,6 +3,16 @@
|
|||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
|
||||
Author: Michael Hanni <mhanni@sprintmail.com>
|
||||
Date: 1999
|
||||
|
||||
A completely rewritten version of the original source by Scott Christley.
|
||||
and:
|
||||
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
||||
Date: May 1997
|
||||
and:
|
||||
Author: Felipe A. Rodriguez <far@ix.netcom.com>
|
||||
Date: July 1998
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
|
@ -103,9 +113,9 @@ static NSZone *menuZone = NULL;
|
|||
- (void)insertItem:(id <NSMenuItem>)newItem
|
||||
atIndex:(int)index
|
||||
{
|
||||
if ([newItem conformsToProtocol:@protocol(NSMenuItem)])
|
||||
if ([(id)newItem conformsToProtocol:@protocol(NSMenuItem)])
|
||||
{
|
||||
if ([newItem isKindOfClass:[NSMenuItemCell class]])
|
||||
if ([(id)newItem isKindOfClass:[NSMenuItemCell class]])
|
||||
[menu_items insertObject:newItem atIndex:index];
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue