From dad8e3552335557c458c79b3c7c81f0ec078d665 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Sun, 7 Jan 2018 01:24:52 +0300 Subject: [PATCH] Fix a few more missing NSUInteger's in NSMenu.subproj --- AppKit/NSMenu.subproj/NSMainMenuView.m | 10 +++++----- AppKit/NSMenu.subproj/NSMenuView.h | 6 +++--- AppKit/NSMenu.subproj/NSMenuView.m | 20 ++++++++++---------- AppKit/NSMenu.subproj/NSMenuWindow.h | 2 +- AppKit/NSMenu.subproj/NSMenuWindow.m | 2 +- AppKit/NSMenu.subproj/NSOverflowMenuView.h | 4 ++-- AppKit/NSMenu.subproj/NSOverflowMenuView.m | 2 +- AppKit/NSMenu.subproj/NSSubmenuView.m | 8 ++++---- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/AppKit/NSMenu.subproj/NSMainMenuView.m b/AppKit/NSMenu.subproj/NSMainMenuView.m index e3ee6825..d25129e9 100755 --- a/AppKit/NSMenu.subproj/NSMainMenuView.m +++ b/AppKit/NSMenu.subproj/NSMainMenuView.m @@ -162,7 +162,7 @@ static void drawSunkenBorder(NSRect rect){ -(void)drawRect:(NSRect)rect { NSRect bounds=[self bounds]; NSArray *items=[[self menu] itemArray]; - int i,count=[items count]; + NSUInteger i,count=[items count]; NSRect previousBorderRect=NSMakeRect(0,0,0,0); BOOL overflow=NO; NSPoint mouseLoc = [[NSApp currentEvent] locationInWindow]; @@ -214,10 +214,10 @@ static void drawSunkenBorder(NSRect rect){ } } --(unsigned)overflowIndex { +-(NSUInteger)overflowIndex { NSRect bounds=[self bounds]; NSArray *items=[[self menu] itemArray]; - unsigned i,count=[items count]; + NSUInteger i,count=[items count]; NSRect previousBorderRect=NSMakeRect(0,0,0,0); for(i=0;i @interface NSOverflowMenuView : NSSubmenuView { - unsigned _overflowIndex; + NSUInteger _overflowIndex; } -- initWithMenu:(NSMenu *)menu overflowAtIndex:(unsigned)overflowIndex; +- initWithMenu:(NSMenu *)menu overflowAtIndex:(NSUInteger)overflowIndex; @end diff --git a/AppKit/NSMenu.subproj/NSOverflowMenuView.m b/AppKit/NSMenu.subproj/NSOverflowMenuView.m index b7d68a71..fe103884 100755 --- a/AppKit/NSMenu.subproj/NSOverflowMenuView.m +++ b/AppKit/NSMenu.subproj/NSOverflowMenuView.m @@ -11,7 +11,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI @implementation NSOverflowMenuView --initWithMenu:(NSMenu *)menu overflowAtIndex:(unsigned)overflowIndex { +-initWithMenu:(NSMenu *)menu overflowAtIndex:(NSUInteger)overflowIndex { _overflowIndex=overflowIndex; return [self initWithMenu:menu]; diff --git a/AppKit/NSMenu.subproj/NSSubmenuView.m b/AppKit/NSMenu.subproj/NSSubmenuView.m index b5232f2e..5962c017 100755 --- a/AppKit/NSMenu.subproj/NSSubmenuView.m +++ b/AppKit/NSMenu.subproj/NSSubmenuView.m @@ -271,9 +271,9 @@ static NSRect boundsToTitleAreaRect(NSRect rect){ } } --(unsigned)itemIndexAtPoint:(NSPoint)point { +-(NSUInteger)itemIndexAtPoint:(NSPoint)point { NSArray *items=[[self menu] itemArray]; - unsigned i,count=[items count]; + NSUInteger i,count=[items count]; NSRect check=boundsToTitleAreaRect([self bounds]); for(i=0;i