mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 14:41:56 +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
2341d42431
commit
e38458a7ba
3 changed files with 7 additions and 2 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue