return value for NSMenu itemAtIndex change from

id<NSMenuItem> to NSMenuitem* as it is done by Apple too
          fixes warnings in NSApplication.m and NSTextView.m

OK Fred Kiefer



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
buzzdee 2015-05-26 17:11:17 +00:00
parent 2341d42431
commit e38458a7ba
3 changed files with 7 additions and 2 deletions

View file

@ -3,6 +3,11 @@
* Source/NSView.m * Source/NSView.m
* Source/NSTextContainer.m * Source/NSTextContainer.m
remove unused parameters from debug outputs remove unused parameters from debug outputs
* Headers/AppKit/NSMenu.h
* Source/NSMenu.m
return value for NSMenu itemAtIndex change from
id<NSMenuItem> to NSMenuitem* as it is done by Apple too
fixes warnings in NSApplication.m and NSTextView.m
2015-05-22 Fred Kiefer <FredKiefer@gmx.de> 2015-05-22 Fred Kiefer <FredKiefer@gmx.de>

View file

@ -558,7 +558,7 @@
/** Returns an item located at index. /** Returns an item located at index.
*/ */
- (id <NSMenuItem>) itemAtIndex: (NSInteger)index; - (NSMenuItem *) itemAtIndex: (NSInteger)index;
/** Informs the menu that the specified item has changed. /** Informs the menu that the specified item has changed.
*/ */

View file

@ -894,7 +894,7 @@ static BOOL menuBarVisible = YES;
return nil; return nil;
} }
- (id <NSMenuItem>) itemAtIndex: (NSInteger)index - (NSMenuItem *) itemAtIndex: (NSInteger)index
{ {
if (index >= [_items count] || index < 0) if (index >= [_items count] || index < 0)
[NSException raise: NSRangeException [NSException raise: NSRangeException