mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 12:00:45 +00:00
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:
parent
e097f5d773
commit
18910829e4
3 changed files with 7 additions and 2 deletions
|
@ -3,6 +3,11 @@
|
|||
* Source/NSView.m
|
||||
* Source/NSTextContainer.m
|
||||
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>
|
||||
|
||||
|
|
|
@ -558,7 +558,7 @@
|
|||
|
||||
/** Returns an item located at index.
|
||||
*/
|
||||
- (id <NSMenuItem>) itemAtIndex: (NSInteger)index;
|
||||
- (NSMenuItem *) itemAtIndex: (NSInteger)index;
|
||||
|
||||
/** Informs the menu that the specified item has changed.
|
||||
*/
|
||||
|
|
|
@ -894,7 +894,7 @@ static BOOL menuBarVisible = YES;
|
|||
return nil;
|
||||
}
|
||||
|
||||
- (id <NSMenuItem>) itemAtIndex: (NSInteger)index
|
||||
- (NSMenuItem *) itemAtIndex: (NSInteger)index
|
||||
{
|
||||
if (index >= [_items count] || index < 0)
|
||||
[NSException raise: NSRangeException
|
||||
|
|
Loading…
Reference in a new issue