Add -[NSMenu popUpMenuPositioningItem:atLocation:inView:]

This commit is contained in:
ethanc8 2023-01-31 21:45:13 -06:00 committed by ethanc8
parent 157695e2cb
commit 6aff0bd0f8
2 changed files with 17 additions and 3 deletions

View file

@ -1445,9 +1445,9 @@ static BOOL menuBarVisible = YES;
[menu _rightMouseDisplay: event];
}
- (void) popUpMenuPositionItem: (NSMenuItem *)item
atLocation: (NSPoint) point
inView: (NSView *) view
- (void) popUpMenuPositioningItem: (NSMenuItem *)item
atLocation: (NSPoint) point
inView: (NSView *) view
{
NSRect cellFrame = [view convertRect: [view bounds] toView: nil];
NSWindow *w = [view window];
@ -1465,6 +1465,15 @@ static BOOL menuBarVisible = YES;
selectedItem: selectedItem];
}
- (void) popUpMenuPositionItem: (NSMenuItem *)item
atLocation: (NSPoint) point
inView: (NSView *) view
{
[self popUpMenuPositioningItem: item
atLocation: point
inView: view];
}
/*
* NSObject Protocol
*/